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

Function Increment

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

Source from the content-addressed store, hash-verified

478}
479
480static word Increment(word *A, unsigned int N, word B=1)
481{
482 word t = A[0];
483 A[0] = t+B;
484 if (A[0] >= t)
485 return 0;
486 for (unsigned i=1; i<N; i++)
487 if (++A[i])
488 return 0;
489 return 1;
490}
491
492static word Decrement(word *A, unsigned int N, word B=1)
493{

Callers 2

AS2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected