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).    */
360 if (in<0) dn->bits=DECNEG; /* sign needed */
532 if (*c=='-') { /* valid - sign */
536 if (*c=='+') { /* valid + sign */
561 /* 2003.09.10 NaNs are now permitted to have a sign */
604 /* 1998.07.11: sign no longer required */
606 c++; /* to (possible) sign */
854 res->bits=0; /* sign=0 */
959 a->bits&=~DECNEG; /* .. and clear the sign */
973 b->bits&=~DECNEG; /* .. and clear the sign */
1241 res->bits=0; /* sign=0 */
1764 result=decCompare(lhs, rhs, 0); /* sign matters */
1868 res->bits=0; /* sign=0 */
1976 uByte bits=0; /* result sign if errors */
2012 Flag rhsneg=rhs->bits&DECNEG; /* save rhs sign */
2244 dac->bits=(dac->bits & ~DECNEG) | bits; /* force correct sign */
2456 /* the exponent or the sign of A. If lhs->digits is less than */
2672 /* the exponent or the sign of A. */
3298 res->bits=0; /* sign=0 */
3411 res->bits&=~DECNEG; /* turn off sign */
3432 res->bits^=DECNEG; /* invert the sign */
3437 /* decNumberCopySign -- quiet copy and set sign operator */
3439 /* This sets C = A with the sign of B */
3450 uByte sign; /* rhs sign */
3454 sign=rhs->bits & DECNEG; /* save sign bit */
3456 res->bits&=~DECNEG; /* clear the sign */
3457 res->bits|=sign; /* set from rhs */
3795 /* Inexact in status must be 0 for correct Exact zero sign in result */
3829 Flag diffsign; /* non-0 if arguments have different sign */
3874 bits=lhs->bits & DECNEG; /* get sign from LHS */
3902 else res->bits=DECNEG; /* preserve 0 sign */
3995 bits=lhs->bits; /* assume sign is that of LHS */
4007 bits=(uByte)(rhs->bits^negate); /* assumed sign is now that of RHS */
4017 /* for residue use the relative sign indication... */
4028 /* flip the result sign if unswapped and rhs was negated */
4082 res->bits^=DECNEG; /* flip the sign */
4140 /* zero, the sign of that sum shall be '+' in all rounding modes */
4141 /* except round toward -Infinity, in which mode that sign shall be */
4148 if (set->round==DEC_ROUND_FLOOR) res->bits|=DECNEG; /* sign - */
4149 else res->bits&=~DECNEG; /* sign + */
4190 /* Sign=Sign1 * Sign2 */
4266 uByte bits; /* working sign */
4297 bits=(lhs->bits^rhs->bits)&DECNEG; /* assumed sign for divisions */
4364 res->bits=bits; /* sign as computed */
4370 res->bits=bits; /* sign as computed */
4677 bits=lhs->bits; /* remainder sign is always as lhs */
4771 /* rem-rhs is needed; the sign will invert. Again, var1 */
4784 bits^=DECNEG; /* flip the sign */
4857 uByte bits; /* result sign */
4916 /* precalculate result sign */
5131 res->bits=bits; /* set sign */
5770 a->bits^=DECNEG; /* restore sign of a */
6111 else result=decCompare(lhs, rhs, 0); /* sign matters */
6118 /* operands are numerically equal or same NaN (and same sign
6138 /* choose according to sign then exponent (see 754) */
6185 /* Arg3 is 1 for a sign-independent compare, 0 otherwise */
6224 /* swap sides, and sign */
6282 /* even though only the sign is of interest. Its length needs */
6341 /* and negated if the result is negative. That is, the sign of the */
6342 /* returned Int is the sign of the result (positive for zero) and */
6626 dn->exponent=0; /* (sign is preserved) */
6900 /* updated as necessary. dn->bits (sign) is unchanged. */
7071 /* is, of the opposite sign to dn. In this case the */
7265 dn->bits=0; /* .. and sign */
7361 /* dn is the number (used for sign [only] and result) */
7365 /* This sets the sign of a number and sets its value to either */
7366 /* Infinity or the maximum finite value, depending on the sign of */
7371 uByte sign=dn->bits&DECNEG; /* clean and save sign bit */
7392 if (sign) needmax=1; /* Infinity if non-negative */
7395 if (!sign) needmax=1; /* Infinity if negative */
7401 dn->bits=sign; /* set sign */
7403 else dn->bits=sign|DECINF; /* Value is +/-Infinity */
7428 dn->bits=0; /* + sign */
7560 /* The sign can be determined from dn by the caller when BIGEVEN or */
7636 if (neg) theInt=-theInt; /* apply sign */
7732 res->bits=lhs->bits; /* need sign etc. */
7741 res->bits|=DECNAN; /* .. preserving sign */
7830 /* Shows: sign, exponent, coefficient (msu first), digits */
7831 /* or: sign, special-value */
7838 char isign='+'; /* main sign */