MCPcopy Create free account
hub / github.com/numpy/numpy / BigInt_IsEven

Function BigInt_IsEven

numpy/core/src/multiarray/dragon4.c:281–285  ·  view source on GitHub ↗

* Returns 1 if the value is even */

Source from the content-addressed store, hash-verified

279 * Returns 1 if the value is even
280 */
281static int
282BigInt_IsEven(const BigInt *i)
283{
284 return (i->length == 0) || ( (i->blocks[0] % 2) == 0);
285}
286
287/*
288 * Returns 0 if (lhs = rhs), negative if (lhs < rhs), positive if (lhs > rhs)

Callers 1

Dragon4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected