Home | History | Annotate | Download | only in i18n

Lines Matching defs:sign

71 /*    which are 0 or 1 (and will have exponent=0 and a sign of 0).    */
375 if (in<0) dn->bits=DECNEG; /* sign needed */
547 if (*c=='-') { /* valid - sign */
551 if (*c=='+') { /* valid + sign */
576 /* 2003.09.10 NaNs are now permitted to have a sign */
619 /* 1998.07.11: sign no longer required */
621 c++; /* to (possible) sign */
869 res->bits=0; /* sign=0 */
974 a->bits&=~DECNEG; /* .. and clear the sign */
988 b->bits&=~DECNEG; /* .. and clear the sign */
1256 res->bits=0; /* sign=0 */
1779 result=decCompare(lhs, rhs, 0); /* sign matters */
1883 res->bits=0; /* sign=0 */
1991 uByte bits=0; /* result sign if errors */
2027 Flag rhsneg=rhs->bits&DECNEG; /* save rhs sign */
2259 dac->bits=(dac->bits & ~DECNEG) | bits; /* force correct sign */
2471 /* the exponent or the sign of A. If lhs->digits is less than */
2687 /* the exponent or the sign of A. */
3313 res->bits=0; /* sign=0 */
3426 res->bits&=~DECNEG; /* turn off sign */
3447 res->bits^=DECNEG; /* invert the sign */
3452 /* decNumberCopySign -- quiet copy and set sign operator */
3454 /* This sets C = A with the sign of B */
3465 uByte sign; /* rhs sign */
3469 sign=rhs->bits & DECNEG; /* save sign bit */
3471 res->bits&=~DECNEG; /* clear the sign */
3472 res->bits|=sign; /* set from rhs */
3810 /* Inexact in status must be 0 for correct Exact zero sign in result */
3844 Flag diffsign; /* non-0 if arguments have different sign */
3889 bits=lhs->bits & DECNEG; /* get sign from LHS */
3917 else res->bits=DECNEG; /* preserve 0 sign */
4010 bits=lhs->bits; /* assume sign is that of LHS */
4022 bits=(uByte)(rhs->bits^negate); /* assumed sign is now that of RHS */
4032 /* for residue use the relative sign indication... */
4043 /* flip the result sign if unswapped and rhs was negated */
4099 res->bits^=DECNEG; /* flip the sign */
4157 /* zero, the sign of that sum shall be '+' in all rounding modes */
4158 /* except round toward -Infinity, in which mode that sign shall be */
4165 if (set->round==DEC_ROUND_FLOOR) res->bits|=DECNEG; /* sign - */
4166 else res->bits&=~DECNEG; /* sign + */
4207 /* Sign
4283 uByte bits; /* working sign */
4314 bits=(lhs->bits^rhs->bits)&DECNEG; /* assumed sign for divisions */
4381 res->bits=bits; /* sign as computed */
4387 res->bits=bits; /* sign as computed */
4694 bits=lhs->bits; /* remainder sign is always as lhs */
4788 /* rem-rhs is needed; the sign will invert. Again, var1 */
4801 bits^=DECNEG; /* flip the sign */
4874 uByte bits; /* result sign */
4933 /* precalculate result sign */
5152 res->bits=bits; /* set sign */
5791 a->bits^=DECNEG; /* restore sign of a */
6132 else result=decCompare(lhs, rhs, 0); /* sign matters */
6139 /* operands are numerically equal or same NaN (and same sign, */
6159 /* choose according to sign then exponent (see 754) */
6206 /* Arg3 is 1 for a sign-independent compare, 0 otherwise */
6245 /* swap sides, and sign */
6303 /* even though only the sign is of interest. Its length needs */
6362 /* and negated if the result is negative. That is, the sign of the */
6363 /* returned Int is the sign of the result (positive for zero) and */
6647 dn->exponent=0; /* (sign is preserved) */
6921 /* updated as necessary. dn->bits (sign) is unchanged. */
7093 /* is, of the opposite sign to dn. In this case the */
7287 dn->bits=0; /* .. and sign */
7383 /* dn is the number (used for sign [only] and result) */
7387 /* This sets the sign of a number and sets its value to either */
7388 /* Infinity or the maximum finite value, depending on the sign of */
7393 uByte sign=dn->bits&DECNEG; /* clean and save sign bit */
7414 if (sign) needmax=1; /* Infinity if non-negative */
7417 if (!sign) needmax=1; /* Infinity if negative */
7423 dn->bits=sign; /* set sign */
7425 else dn->bits=sign|DECINF; /* Value is +/-Infinity */
7450 dn->bits=0; /* + sign */
7582 /* The sign can be determined from dn by the caller when BIGEVEN or */
7658 if (neg) theInt=-theInt; /* apply sign */
7754 res->bits=lhs->bits; /* need sign etc. */
7763 res->bits|=DECNAN; /* .. preserving sign */
7852 /* Shows: sign, exponent, coefficient (msu first), digits */
7853 /* or: sign, special-value */
7860 char isign='+'; /* main sign */