Lines Matching defs:sign
16 * A BigInteger is just an aggregate of a BigUnsigned and a sign. (It is no
29 // Enumeration for the sign of a BigInteger.
30 enum Sign { negative = -1, zero = 0, positive = 1 };
33 Sign sign;
38 BigInteger() : sign(zero), mag() {}
41 BigInteger(const BigInteger &x) : sign(x.sign), mag(x.mag) {};
46 // Constructor that copies from a given array of blocks with a sign.
47 BigInteger(const Blk *b, Index blen, Sign s);
51 sign = mag.isZero() ? zero : positive;
54 // Constructor from a BigUnsigned and a sign
55 BigInteger(const BigUnsigned &x, Sign s);
59 sign = mag.isZero() ? zero : positive;
86 Sign getSign() const { return sign; }
95 bool isZero() const { return sign == zero; } // A bit special
104 return sign == x.sign && mag == x.mag;
222 sign = Sign(-sign);