1
Fork 0
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:
Dan Klishch 2023-02-04 19:03:52 +03:00 committed by Andrew Kaster
parent 67ec347bfa
commit 8f8e31e780
3 changed files with 4 additions and 26 deletions

View file

@ -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)