Home | History | Annotate | Download | only in i18n

Lines Matching defs:COMPARE

198 #define COMPARE     0x01           /* Compare operators  */
203 #define COMPSIG 0x06 /* .. [signaling COMPARE] */
872 /* decNumberCompare -- compare two Numbers */
886 decCompareOp(res, lhs, rhs, set, COMPARE, &status);
892 /* decNumberCompareSignal -- compare, signalling on all NaNs */
912 /* decNumberCompareTotal -- compare two Numbers, using total ordering */
933 compare, total ordering of magnitudes */
1552 /* decNumberMax -- compare two Numbers and return the maximum */
1575 /* decNumberMaxMag -- compare and return the maximum by magnitude */
1598 /* decNumberMin -- compare two Numbers and return the minimum */
1621 /* decNumberMinMag -- compare and return the minimum by magnitude */
1779 else { /* valid compare */
1810 } /* compare OK */
2805 /* % of f; to ensure proper rounding, compare squares of (approx - */
3038 /* rounded square root of f; to ensure proper rounding, compare */
3047 decCompareOp(b, f, b, &workset, COMPARE, &ignore); /* b ? f, reversed */
3062 decCompareOp(b, b, f, &workset, COMPARE, &ignore); /* b ? f */
3098 decCompareOp(t, b, rhs, &workset, COMPARE, &mstatus); /* b ? rhs */
4214 /* compare numbers */
4219 /* Compare lengths of numbers (mantissae): */
4545 if (var1units==var2ulen) { /* unit-by-unit compare needed */
4546 /* compare the two numbers, from msu */
4548 Unit v2; /* units to compare */
4734 Int compare, tarunits; /* work */
4746 compare=decUnitCompare(accnext, tarunits, rhs->lsu, D2U(rhs->digits),
4748 if (compare==BADINT) { /* deep trouble */
4763 if (compare>0 || (compare==0 && wasodd)) { /* adjustment needed */
5333 comp=decCompare(d, rhs, 1); /* signless compare */
5806 decCompareOp(&cmp, rhs, &numone, &aset, COMPARE, &ignore); /* rhs=1 ? */
6015 /* decCompareOp -- compare, min, or max two Numbers */
6018 /* COMPARE -- returns the signum (as a number) giving the */
6021 /* COMPSIG -- as COMPARE except that a quiet NaN raises */
6038 /* C must have space for one digit for COMPARE or set->digits for */
6092 if (op==COMPARE); /* result will be NaN */
6135 if (op==COMPARE || op==COMPSIG ||op==COMPTOTAL) { /* returning signum */
6198 /* decCompare -- compare two decNumbers by numerical value */
6204 /* Arg3 is 1 for a sign-independent compare, 0 otherwise */
6213 Int compare; /* work */
6241 /* must compare the coefficients, allowing for exponents */
6249 compare=decUnitCompare(lhs->lsu, D2U(lhs->digits),
6252 if (compare!=BADINT) compare*=result; /* comparison succeeded */
6253 return compare;
6257 /* decUnitCompare -- compare two >=0 integers in Unit arrays */
6285 /* same number of units in both -- need unit-by-unit compare */
7339 comp=decCompare(dn, &nmin, 1); /* (signless compare) */
7694 /* decBiStr -- compare string with pairwise options */
7696 /* targ is the string to compare */
7697 /* str1 is one of the strings to compare against (length may be 0) */
7700 /* returns 1 if strings compare equal, (that is, it is the same */
7704 /* This is used for generic caseless compare, including the awkward */