Lines Matching refs:BigUnsigned
19 class BigUnsigned : protected NumberlikeArray<unsigned long> { class
33 BigUnsigned(int, Index c) : NumberlikeArray<Blk>(0, c) {} in BigUnsigned() function in BigUnsigned
43 BigUnsigned() : NumberlikeArray<Blk>() {} in BigUnsigned() function in BigUnsigned
46 BigUnsigned(const BigUnsigned &x) : NumberlikeArray<Blk>(x) {} in BigUnsigned() function in BigUnsigned
49 void operator=(const BigUnsigned &x) { in operator =()
54 BigUnsigned(const Blk *b, Index blen) : NumberlikeArray<Blk>(b, blen) { in BigUnsigned() function in BigUnsigned
60 ~BigUnsigned() {} in ~BigUnsigned()
63 BigUnsigned(unsigned long x);
64 BigUnsigned( long x);
65 BigUnsigned(unsigned int x);
66 BigUnsigned( int x);
67 BigUnsigned(unsigned short x);
68 BigUnsigned( short x);
121 CmpRes compareTo(const BigUnsigned &x) const;
124 bool operator ==(const BigUnsigned &x) const { in operator ==()
127 bool operator !=(const BigUnsigned &x) const { in operator !=()
130 bool operator < (const BigUnsigned &x) const { return compareTo(x) == less ; } in operator <()
131 bool operator <=(const BigUnsigned &x) const { return compareTo(x) != greater; } in operator <=()
132 bool operator >=(const BigUnsigned &x) const { return compareTo(x) != less ; } in operator >=()
133 bool operator > (const BigUnsigned &x) const { return compareTo(x) == greater; } in operator >()
184 void add(const BigUnsigned &a, const BigUnsigned &b);
185 void subtract(const BigUnsigned &a, const BigUnsigned &b);
186 void multiply(const BigUnsigned &a, const BigUnsigned &b);
187 void bitAnd(const BigUnsigned &a, const BigUnsigned &b);
188 void bitOr(const BigUnsigned &a, const BigUnsigned &b);
189 void bitXor(const BigUnsigned &a, const BigUnsigned &b);
192 void bitShiftLeft(const BigUnsigned &a, int b);
193 void bitShiftRight(const BigUnsigned &a, int b);
201 void divideWithRemainder(const BigUnsigned &b, BigUnsigned &q);
207 BigUnsigned operator +(const BigUnsigned &x) const;
208 BigUnsigned operator -(const BigUnsigned &x) const;
209 BigUnsigned operator *(const BigUnsigned &x) const;
210 BigUnsigned operator /(const BigUnsigned &x) const;
211 BigUnsigned operator %(const BigUnsigned &x) const;
214 BigUnsigned operator &(const BigUnsigned &x) const;
215 BigUnsigned operator |(const BigUnsigned &x) const;
216 BigUnsigned operator ^(const BigUnsigned &x) const;
217 BigUnsigned operator <<(int b) const;
218 BigUnsigned operator >>(int b) const;
221 void operator +=(const BigUnsigned &x);
222 void operator -=(const BigUnsigned &x);
223 void operator *=(const BigUnsigned &x);
224 void operator /=(const BigUnsigned &x);
225 void operator %=(const BigUnsigned &x);
226 void operator &=(const BigUnsigned &x);
227 void operator |=(const BigUnsigned &x);
228 void operator ^=(const BigUnsigned &x);
241 friend Blk getShiftedBlock(const BigUnsigned &num, Index x,
246 friend X convertBigUnsignedToPrimitiveAccess(const BigUnsigned &a);
253 inline BigUnsigned BigUnsigned::operator +(const BigUnsigned &x) const { in operator +()
254 BigUnsigned ans; in operator +()
258 inline BigUnsigned BigUnsigned::operator -(const BigUnsigned &x) const { in operator -()
259 BigUnsigned ans; in operator -()
263 inline BigUnsigned BigUnsigned::operator *(const BigUnsigned &x) const { in operator *()
264 BigUnsigned ans; in operator *()
268 inline BigUnsigned BigUnsigned::operator /(const BigUnsigned &x) const { in operator /()
271 BigUnsigned q, r; in operator /()
276 inline BigUnsigned BigUnsigned::operator %(const BigUnsigned &x) const { in operator %()
279 BigUnsigned q, r; in operator %()
284 inline BigUnsigned BigUnsigned::operator &(const BigUnsigned &x) const { in operator &()
285 BigUnsigned ans; in operator &()
289 inline BigUnsigned BigUnsigned::operator |(const BigUnsigned &x) const { in operator |()
290 BigUnsigned ans; in operator |()
294 inline BigUnsigned BigUnsigned::operator ^(const BigUnsigned &x) const { in operator ^()
295 BigUnsigned ans; in operator ^()
299 inline BigUnsigned BigUnsigned::operator <<(int b) const { in operator <<()
300 BigUnsigned ans; in operator <<()
304 inline BigUnsigned BigUnsigned::operator >>(int b) const { in operator >>()
305 BigUnsigned ans; in operator >>()
310 inline void BigUnsigned::operator +=(const BigUnsigned &x) { in operator +=()
313 inline void BigUnsigned::operator -=(const BigUnsigned &x) { in operator -=()
316 inline void BigUnsigned::operator *=(const BigUnsigned &x) { in operator *=()
319 inline void BigUnsigned::operator /=(const BigUnsigned &x) { in operator /=()
324 BigUnsigned q; in operator /=()
329 inline void BigUnsigned::operator %=(const BigUnsigned &x) { in operator %=()
332 BigUnsigned q; in operator %=()
336 inline void BigUnsigned::operator &=(const BigUnsigned &x) { in operator &=()
339 inline void BigUnsigned::operator |=(const BigUnsigned &x) { in operator |=()
342 inline void BigUnsigned::operator ^=(const BigUnsigned &x) { in operator ^=()
345 inline void BigUnsigned::operator <<=(int b) { in operator <<=()
348 inline void BigUnsigned::operator >>=(int b) { in operator >>=()
366 void BigUnsigned::initFromPrimitive(X x) { in initFromPrimitive()
383 void BigUnsigned::initFromSignedPrimitive(X x) { in initFromSignedPrimitive()
396 X BigUnsigned::convertToPrimitive() const { in convertToPrimitive()
417 X BigUnsigned::convertToSignedPrimitive() const { in convertToSignedPrimitive()