mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibCrypto: Add the >= operator to UnsignedBigInteger
This commit is contained in:
committed by
Linus Groh
parent
01c731aa59
commit
75d1ffea00
Notes:
sideshowbarker
2024-07-18 09:10:00 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/75d1ffea005 Pull-request: https://github.com/SerenityOS/serenity/pull/8663 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/linusg
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user