mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibCrypto: Remove some now-unused (and incorrect) methods
Removes the UnsignedBigInteger overloads of SignedBigInteger::binary_{and,or,xor}(). They're now unused, and they also didn't work when *this was negative.
This commit is contained in:
parent
d9b6eb29bc
commit
2392f65345
2 changed files with 0 additions and 18 deletions
|
@ -143,21 +143,6 @@ FLATTEN SignedBigInteger SignedBigInteger::minus(const UnsignedBigInteger& other
|
||||||
return { other.minus(m_unsigned_data), true };
|
return { other.minus(m_unsigned_data), true };
|
||||||
}
|
}
|
||||||
|
|
||||||
FLATTEN SignedBigInteger SignedBigInteger::bitwise_or(const UnsignedBigInteger& other) const
|
|
||||||
{
|
|
||||||
return { unsigned_value().bitwise_or(other), m_sign };
|
|
||||||
}
|
|
||||||
|
|
||||||
FLATTEN SignedBigInteger SignedBigInteger::bitwise_and(const UnsignedBigInteger& other) const
|
|
||||||
{
|
|
||||||
return { unsigned_value().bitwise_and(other), false };
|
|
||||||
}
|
|
||||||
|
|
||||||
FLATTEN SignedBigInteger SignedBigInteger::bitwise_xor(const UnsignedBigInteger& other) const
|
|
||||||
{
|
|
||||||
return { unsigned_value().bitwise_xor(other), m_sign };
|
|
||||||
}
|
|
||||||
|
|
||||||
FLATTEN SignedBigInteger SignedBigInteger::bitwise_not() const
|
FLATTEN SignedBigInteger SignedBigInteger::bitwise_not() const
|
||||||
{
|
{
|
||||||
// Bitwise operators assume two's complement, while SignedBigInteger uses sign-magnitude.
|
// Bitwise operators assume two's complement, while SignedBigInteger uses sign-magnitude.
|
||||||
|
|
|
@ -109,9 +109,6 @@ public:
|
||||||
|
|
||||||
SignedBigInteger plus(const UnsignedBigInteger& other) const;
|
SignedBigInteger plus(const UnsignedBigInteger& other) const;
|
||||||
SignedBigInteger minus(const UnsignedBigInteger& other) const;
|
SignedBigInteger minus(const UnsignedBigInteger& other) const;
|
||||||
SignedBigInteger bitwise_or(const UnsignedBigInteger& other) const;
|
|
||||||
SignedBigInteger bitwise_and(const UnsignedBigInteger& other) const;
|
|
||||||
SignedBigInteger bitwise_xor(const UnsignedBigInteger& other) const;
|
|
||||||
SignedBigInteger multiplied_by(const UnsignedBigInteger& other) const;
|
SignedBigInteger multiplied_by(const UnsignedBigInteger& other) const;
|
||||||
SignedDivisionResult divided_by(const UnsignedBigInteger& divisor) const;
|
SignedDivisionResult divided_by(const UnsignedBigInteger& divisor) const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue