Lines Matching refs:sign

14 	sign = x.sign;  in operator =()
24 sign = zero; in BigInteger()
29 sign = mag.isZero() ? zero : s; in BigInteger()
43 sign = zero; in BigInteger()
48 sign = mag.isZero() ? zero : s; in BigInteger()
62 BigInteger::BigInteger(unsigned long x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
63 BigInteger::BigInteger(unsigned int x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
64 BigInteger::BigInteger(unsigned short x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
83 BigInteger::BigInteger(long x) : sign(signOf(x)), mag(magOf<long , unsigned long >(x)) {} in BigInteger()
84 BigInteger::BigInteger(int x) : sign(signOf(x)), mag(magOf<int , unsigned int >(x)) {} in BigInteger()
85 BigInteger::BigInteger(short x) : sign(signOf(x)), mag(magOf<short, unsigned short>(x)) {} in BigInteger()
100 if (sign == negative) in convertToUnsignedPrimitive()
110 if (sign == zero) in convertToSignedPrimitive()
115 if (sign == positive) { in convertToSignedPrimitive()
141 if (sign < x.sign) in compareTo()
143 else if (sign > x.sign) in compareTo()
145 else switch (sign) { in compareTo()
176 if (a.sign == zero) in add()
178 else if (b.sign == zero) in add()
182 else if (a.sign == b.sign) { in add()
183 sign = a.sign; in add()
191 sign = zero; in add()
196 sign = a.sign; in add()
200 sign = b.sign; in add()
212 if (a.sign == zero) { in subtract()
216 sign = Sign(-b.sign); in subtract()
217 } else if (b.sign == zero) in subtract()
220 else if (a.sign != b.sign) { in subtract()
221 sign = a.sign; in subtract()
229 sign = zero; in subtract()
234 sign = a.sign; in subtract()
240 sign = Sign(-b.sign); in subtract()
250 if (a.sign == zero || b.sign == zero) { in multiply()
251 sign = zero; in multiply()
257 sign = (a.sign == b.sign) ? positive : negative; in multiply()
296 if (b.sign == zero) { in divideWithRemainder()
298 q.sign = zero; in divideWithRemainder()
302 if (sign == zero) { in divideWithRemainder()
304 q.sign = zero; in divideWithRemainder()
311 if (sign == b.sign) { in divideWithRemainder()
313 q.sign = positive; in divideWithRemainder()
316 q.sign = negative; in divideWithRemainder()
344 if (sign != b.sign) { in divideWithRemainder()
354 sign = b.sign; in divideWithRemainder()
358 sign = zero; in divideWithRemainder()
360 q.sign = zero; in divideWithRemainder()
371 sign = Sign(-a.sign); in negate()
378 if (sign == negative) { in operator ++()
381 sign = zero; in operator ++()
384 sign = positive; // if not already in operator ++()
395 if (sign == positive) { in operator --()
398 sign = zero; in operator --()
401 sign = negative; in operator --()