mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
LibCrypto: Add the >= operator to UnsignedBigInteger
This commit is contained in:
parent
01c731aa59
commit
75d1ffea00
2 changed files with 6 additions and 0 deletions
|
@ -337,6 +337,11 @@ bool UnsignedBigInteger::operator>(const UnsignedBigInteger& other) const
|
|||
return *this != other && !(*this < other);
|
||||
}
|
||||
|
||||
bool UnsignedBigInteger::operator>=(UnsignedBigInteger const& other) const
|
||||
{
|
||||
return *this > other || *this == other;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void AK::Formatter<Crypto::UnsignedBigInteger>::format(FormatBuilder& fmtbuilder, const Crypto::UnsignedBigInteger& value)
|
||||
|
|
|
@ -99,6 +99,7 @@ public:
|
|||
bool operator!=(const UnsignedBigInteger& other) const;
|
||||
bool operator<(const UnsignedBigInteger& other) const;
|
||||
bool operator>(const UnsignedBigInteger& other) const;
|
||||
bool operator>=(UnsignedBigInteger const& other) const;
|
||||
|
||||
private:
|
||||
friend class UnsignedBigIntegerAlgorithms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue