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

Function BigInt_Set_uint32

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

Source from the content-addressed store, hash-verified

255#endif /* DOUBLE_DOUBLE and QUAD */
256
257static void
258BigInt_Set_uint32(BigInt *i, npy_uint32 val)
259{
260 if (val != 0) {
261 i->blocks[0] = val;
262 i->length = 1;
263 }
264 else {
265 i->length = 0;
266 }
267}
268
269/*
270 * Returns 1 if the value is zero

Callers 4

BigInt_Pow10Function · 0.85
Dragon4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected