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

Function fxBigInt_ucomp

xs/sources/xsBigInt.c:953–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953int fxBigInt_ucomp(txBigInt *a, txBigInt *b)
954{
955 int i;
956
957 if (a->size != b->size)
958 return(a->size > b->size ? 1: -1);
959 for (i = a->size; --i >= 0;) {
960 if (a->data[i] != b->data[i])
961 return(a->data[i] > b->data[i] ? 1: -1);
962 }
963 return(0);
964}
965
966int fxBigInt_iszero(txBigInt *a)
967{

Callers 14

fxBigInt_mod_addFunction · 0.85
fxBigInt_mod_dblFunction · 0.85
fxBigInt_mod_subFunction · 0.85
fxBigInt_mod_exp_LRFunction · 0.85
mont_reductionFunction · 0.85
mont_mulFunction · 0.85
fxBigInt_mont_exp_LRFunction · 0.85
fxBigInt_mont_exp_SWFunction · 0.85
ec_addFunction · 0.85
fxBigInt_ec_normFunction · 0.85
fxBigInt_compFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected