MCPcopy Create free account
hub / github.com/c3d/tao3D / PositiveMultiply

Function PositiveMultiply

libcryptopp/cryptopp/integer.cpp:3656–3666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3654}
3655
3656void PositiveMultiply(Integer &product, const Integer &a, const Integer &b)
3657{
3658 size_t aSize = RoundupSize(a.WordCount());
3659 size_t bSize = RoundupSize(b.WordCount());
3660
3661 product.reg.CleanNew(RoundupSize(aSize+bSize));
3662 product.sign = Integer::POSITIVE;
3663
3664 IntegerSecBlock workspace(aSize + bSize);
3665 AsymmetricMultiply(product.reg, workspace, a.reg, aSize, b.reg, bSize);
3666}
3667
3668void Multiply(Integer &product, const Integer &a, const Integer &b)
3669{

Callers 1

MultiplyFunction · 0.85

Calls 4

RoundupSizeFunction · 0.85
AsymmetricMultiplyFunction · 0.85
CleanNewMethod · 0.80
WordCountMethod · 0.45

Tested by

no test coverage detected