mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
LibCrypto: Expose UnsignedBigInteger's is_zero() in SignedBigInteger
Note we don't need to check the sign because negative zero became
disallowed in b0d6399f60
.
This commit is contained in:
parent
bb9a44cd50
commit
440d185666
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ public:
|
|||
[[nodiscard]] UnsignedBigInteger const& unsigned_value() const { return m_unsigned_data; }
|
||||
[[nodiscard]] Vector<u32, STARTING_WORD_SIZE> const words() const { return m_unsigned_data.words(); }
|
||||
[[nodiscard]] bool is_negative() const { return m_sign; }
|
||||
[[nodiscard]] bool is_zero() const { return m_unsigned_data.is_zero(); }
|
||||
|
||||
void negate()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue