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

Method Square2

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

Source from the content-addressed store, hash-verified

757}
758
759void Portable::Square2(word *R, const word *A)
760{
761 DWord p, q;
762 word c, d, e;
763
764 p = DWord::Multiply(A[0], A[0]);
765 R[0] = p.GetLowHalf();
766 c = p.GetHighHalf();
767 d = e = 0;
768
769 SquAcc(0, 1);
770
771 R[1] = c;
772 p = DWord::MultiplyAndAdd(A[1], A[1], d);
773 R[2] = p.GetLowHalf();
774 R[3] = e + p.GetHighHalf();
775}
776
777void Portable::Square4(word *R, const word *A)
778{

Callers

nothing calls this directly

Calls 2

GetLowHalfMethod · 0.45
GetHighHalfMethod · 0.45

Tested by

no test coverage detected