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

Function fxBigInt_comp

xs/sources/xsBigInt.c:943–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943int fxBigInt_comp(txBigInt *a, txBigInt *b)
944{
945 if (a->sign != b->sign)
946 return(a->sign ? -1: 1);
947 else if (a->sign)
948 return(fxBigInt_ucomp(b, a));
949 else
950 return(fxBigInt_ucomp(a, b));
951}
952
953int fxBigInt_ucomp(txBigInt *a, txBigInt *b)
954{

Callers 2

fx_BigInt_asIntNFunction · 0.85
fxBigIntCompareFunction · 0.85

Calls 1

fxBigInt_ucompFunction · 0.85

Tested by

no test coverage detected