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

Method Add

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

Source from the content-addressed store, hash-verified

563};
564
565word Portable::Add(word *C, const word *A, const word *B, unsigned int N)
566{
567 DWord u(0, 0);
568 for (unsigned int i = 0; i < N; i+=2)
569 {
570 u = DWord(A[i]) + B[i] + u.GetHighHalf();
571 C[i] = u.GetLowHalf();
572 u = DWord(A[i+1]) + B[i+1] + u.GetHighHalf();
573 C[i+1] = u.GetLowHalf();
574 }
575 return u.GetHighHalf();
576}
577
578word Portable::Subtract(word *C, const word *A, const word *B, unsigned int N)
579{

Callers

nothing calls this directly

Calls 13

DWordClass · 0.85
CompareFunction · 0.85
CopyWordsFunction · 0.85
DecrementFunction · 0.85
SetWordsFunction · 0.85
MontgomeryReduceFunction · 0.85
IsEvenMethod · 0.80
IsNegativeMethod · 0.80
GetHighHalfMethod · 0.45
GetLowHalfMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected