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

Function LinearMultiply

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

Source from the content-addressed store, hash-verified

510
511
512static word LinearMultiply(word *C, const word *A, word B, unsigned int N)
513{
514 word carry=0;
515 for(unsigned i=0; i<N; i++)
516 {
517 DWord p = DWord::MultiplyAndAdd(A[i], B, carry);
518 C[i] = p.GetLowHalf();
519 carry = p.GetHighHalf();
520 }
521 return carry;
522}
523
524
525static word AtomicInverseModPower2(word A)

Callers 1

AS2Function · 0.85

Calls 2

GetLowHalfMethod · 0.45
GetHighHalfMethod · 0.45

Tested by

no test coverage detected