ladybird/Userland/Libraries/LibCrypto/BigInt
Linus Groh 58c6a156bf LibCrypto: Fix subtracting two negative SignedBigIntegers
Currently, we get the following results

    -1 - -2 = -1
    -2 - -1 =  1

Correct would be:

    -1 - -2 =  1
    -2 - -1 = -1

This was already attempted to be fixed in 7ed8970, but that change was
incorrect. This directly translates to LibJS BigInts having the same
incorrect behavior - it even was tested.
2021-11-16 10:06:53 +00:00
..
Algorithms Everywhere: Behaviour => Behavior 2021-09-07 13:53:14 +02:00
SignedBigInteger.cpp LibCrypto: Fix subtracting two negative SignedBigIntegers 2021-11-16 10:06:53 +00:00
SignedBigInteger.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
UnsignedBigInteger.cpp LibCrypto: Add naive implementation of {Un,}SignedBigInteger::to_double 2021-09-06 22:15:39 +01:00
UnsignedBigInteger.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00