• Home
  • Raw
  • Download

Lines Matching refs:BigInteger

19 class BigInteger {  class
38 BigInteger() : sign(zero), mag() {} in BigInteger() function in BigInteger
41 BigInteger(const BigInteger &x) : sign(x.sign), mag(x.mag) {}; in BigInteger() function in BigInteger
44 void operator=(const BigInteger &x);
47 BigInteger(const Blk *b, Index blen, Sign s);
50 BigInteger(const Blk *b, Index blen) : mag(b, blen) { in BigInteger() function in BigInteger
55 BigInteger(const BigUnsigned &x, Sign s);
58 BigInteger(const BigUnsigned &x) : mag(x) { in BigInteger() function in BigInteger
63 BigInteger(unsigned long x);
64 BigInteger( long x);
65 BigInteger(unsigned int x);
66 BigInteger( int x);
67 BigInteger(unsigned short x);
68 BigInteger( short x);
100 CmpRes compareTo(const BigInteger &x) const;
103 bool operator ==(const BigInteger &x) const { in operator ==()
106 bool operator !=(const BigInteger &x) const { return !operator ==(x); }; in operator !=()
107 bool operator < (const BigInteger &x) const { return compareTo(x) == less ; } in operator <()
108 bool operator <=(const BigInteger &x) const { return compareTo(x) != greater; } in operator <=()
109 bool operator >=(const BigInteger &x) const { return compareTo(x) != less ; } in operator >=()
110 bool operator > (const BigInteger &x) const { return compareTo(x) == greater; } in operator >()
113 void add (const BigInteger &a, const BigInteger &b);
114 void subtract(const BigInteger &a, const BigInteger &b);
115 void multiply(const BigInteger &a, const BigInteger &b);
119 void divideWithRemainder(const BigInteger &b, BigInteger &q);
120 void negate(const BigInteger &a);
125 BigInteger operator +(const BigInteger &x) const;
126 BigInteger operator -(const BigInteger &x) const;
127 BigInteger operator *(const BigInteger &x) const;
128 BigInteger operator /(const BigInteger &x) const;
129 BigInteger operator %(const BigInteger &x) const;
130 BigInteger operator -() const;
132 void operator +=(const BigInteger &x);
133 void operator -=(const BigInteger &x);
134 void operator *=(const BigInteger &x);
135 void operator /=(const BigInteger &x);
136 void operator %=(const BigInteger &x);
150 inline BigInteger BigInteger::operator +(const BigInteger &x) const { in operator +()
151 BigInteger ans; in operator +()
155 inline BigInteger BigInteger::operator -(const BigInteger &x) const { in operator -()
156 BigInteger ans; in operator -()
160 inline BigInteger BigInteger::operator *(const BigInteger &x) const { in operator *()
161 BigInteger ans; in operator *()
165 inline BigInteger BigInteger::operator /(const BigInteger &x) const { in operator /()
168 BigInteger q, r; in operator /()
173 inline BigInteger BigInteger::operator %(const BigInteger &x) const { in operator %()
176 BigInteger q, r; in operator %()
181 inline BigInteger BigInteger::operator -() const { in operator -()
182 BigInteger ans; in operator -()
194 inline void BigInteger::operator +=(const BigInteger &x) { in operator +=()
197 inline void BigInteger::operator -=(const BigInteger &x) { in operator -=()
200 inline void BigInteger::operator *=(const BigInteger &x) { in operator *=()
203 inline void BigInteger::operator /=(const BigInteger &x) { in operator /=()
208 BigInteger q; in operator /=()
213 inline void BigInteger::operator %=(const BigInteger &x) { in operator %=()
216 BigInteger q; in operator %=()
221 inline void BigInteger::flipSign() { in flipSign()