MCPcopy Create free account
hub / github.com/LUX-Core/lux / Decrement

Function Decrement

src/cryptopp/integer.cpp:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106inline static int Decrement(word *A, size_t N, word B=1)
107{
108 CRYPTOPP_ASSERT(N);
109 word t = A[0];
110 A[0] = t-B;
111 if (A[0] <= t)
112 return 0;
113 for (unsigned i=1; i<N; i++)
114 if (A[i]--)
115 return 0;
116 return 1;
117}
118
119static void TwosComplement(word *A, size_t N)
120{

Callers 2

TwosComplementFunction · 0.85
integer.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected