MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxBigInt_neg

Function fxBigInt_neg

xs/sources/xsBigInt.c:1384–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382}
1383
1384txBigInt *fxBigInt_neg(txMachine* the, txBigInt *r, txBigInt *a)
1385{
1386 if (r == NULL)
1387 r = fxBigInt_alloc(the, a->size);
1388 fxBigInt_copy(r, a);
1389 if (!fxBigInt_iszero(a))
1390 r->sign = !a->sign;
1391 return(r);
1392}
1393
1394txBigInt *fxBigInt_sub(txMachine* the, txBigInt *rr, txBigInt *aa, txBigInt *bb)
1395{

Callers

nothing calls this directly

Calls 3

fxBigInt_allocFunction · 0.85
fxBigInt_copyFunction · 0.85
fxBigInt_iszeroFunction · 0.85

Tested by

no test coverage detected