MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / Decrement

Function Decrement

extra/yassl/taocrypt/src/integer.cpp:492–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492static word Decrement(word *A, unsigned int N, word B=1)
493{
494 word t = A[0];
495 A[0] = t-B;
496 if (A[0] <= t)
497 return 0;
498 for (unsigned i=1; i<N; i++)
499 if (A[i]--)
500 return 0;
501 return 1;
502}
503
504static void TwosComplement(word *A, unsigned int N)
505{

Callers 3

TwosComplementFunction · 0.85
AS2Function · 0.85
AddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected