diff options
author | lloyd <[email protected]> | 2008-09-07 17:51:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-07 17:51:38 +0000 |
commit | 3eba26d870fcc93a706d90a01f2bf2993a90c13d (patch) | |
tree | e736b6395e89941066f1dd6f8f7300318b6efcd6 /src | |
parent | daf55a15bee158302a35480d01815a090c39b773 (diff) |
Inline BigInt::is_zero
Diffstat (limited to 'src')
-rw-r--r-- | src/bigint.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/bigint.cpp b/src/bigint.cpp index bce56cc2c..e7b4f2c15 100644 --- a/src/bigint.cpp +++ b/src/bigint.cpp @@ -1,6 +1,6 @@ /************************************************* * BigInt Base Source File * -* (C) 1999-2007 Jack Lloyd * +* (C) 1999-2008 Jack Lloyd * *************************************************/ #include <botan/bigint.h> @@ -337,16 +337,6 @@ u32bit BigInt::encoded_size(Base base) const } /************************************************* -* Return true if this number is zero * -*************************************************/ -bool BigInt::is_zero() const - { - for(u32bit j = 0; j != size(); ++j) - if(rep[j]) return false; - return true; - } - -/************************************************* * Set the sign * *************************************************/ void BigInt::set_sign(Sign s) |