diff options
Diffstat (limited to 'c5/integer.h')
-rw-r--r-- | c5/integer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/c5/integer.h b/c5/integer.h index b79c07c..fcf3ebe 100644 --- a/c5/integer.h +++ b/c5/integer.h @@ -67,6 +67,9 @@ public: }; //! + enum Sign {POSITIVE=0, NEGATIVE=1}; + + //! enum Signedness { //! UNSIGNED, @@ -92,6 +95,9 @@ public: //! convert from signed long Integer(signed long value); + //! convert from two words + Integer(Sign s, word highWord, word lowWord); + //! convert from string /*! str can be in base 2, 8, 10, or 16. Base is determined by a case insensitive suffix of 'h', 'o', or 'b'. No suffix means base 10. @@ -390,8 +396,6 @@ private: friend void PositiveMultiply(Integer &product, const Integer &a, const Integer &b); friend void PositiveDivide(Integer &remainder, Integer "ient, const Integer ÷nd, const Integer &divisor); - enum Sign {POSITIVE=0, NEGATIVE=1}; - SecAlignedWordBlock reg; Sign sign; }; |