ladybird/Userland/Libraries/LibCrypto/BigInt/Algorithms
Nico Weber 1f98639396 LibCrypto+LibJS: Better bigint bitwise_and binop
Bitwise and is defined in terms of two's complement, so some converting
needs to happen for SignedBigInteger's sign/magnitude representation to
work out.

UnsignedBigInteger::bitwise_not() is repurposed to convert all
high-order zero bits to ones up to a limit, for the two's complement
conversion to work.

Fixes test262/test/language/expressions/bitwise-and/bigint.js.
2022-01-18 20:04:06 +03:30
..
BitwiseOperations.cpp LibCrypto+LibJS: Better bigint bitwise_and binop 2022-01-18 20:04:06 +03:30
Division.cpp LibCrypto: Add the UnsignedBigInteger::Word alias 2021-05-13 19:18:07 +01:00
GCD.cpp LibCrypto: Split BigInteger operations into an Algorithms class 2021-05-13 19:18:07 +01:00
ModularInverse.cpp LibCrypto: Add a += operation to UnsignedBigIntegerAlgorithms 2021-05-13 19:18:07 +01:00
ModularPower.cpp Everywhere: Fix many spelling errors 2022-01-07 10:56:59 +01:00
Multiplication.cpp LibCrypto: Add a += operation to UnsignedBigIntegerAlgorithms 2021-05-13 19:18:07 +01:00
SimpleOperations.cpp LibCrypto: Add a += operation to UnsignedBigIntegerAlgorithms 2021-05-13 19:18:07 +01:00
UnsignedBigIntegerAlgorithms.h LibCrypto+LibJS: Better bigint bitwise_and binop 2022-01-18 20:04:06 +03:30