mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
AK+LibCrypto: Delete 64x64 wide multiplication workarounds
Now UFixedBigInt exposes API to do wide multiplications of this kind efficiently.
This commit is contained in:
parent
67ec347bfa
commit
8f8e31e780
3 changed files with 4 additions and 26 deletions
|
@ -57,8 +57,7 @@ static u256 select(u256 const& left, u256 const& right, bool condition)
|
|||
|
||||
static u512 multiply(u256 const& left, u256 const& right)
|
||||
{
|
||||
auto result = left.wide_multiply(right);
|
||||
return { result.low, result.high };
|
||||
return left.wide_multiply(right);
|
||||
}
|
||||
|
||||
static u256 modular_reduce(u256 const& value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue