Lines Matching refs:diff
1987 int diff = find_unit_order (a) - find_unit_order (b); in human_numcompare() local
1988 return (diff ? diff : strnumcmp (a, b, decimal_point, thousands_sep)); in human_numcompare()
2239 int diff = memcmp (dig[0], dig[1], sizeof dig[0]); in compare_random() local
2242 if (! diff) in compare_random()
2251 diff = xfrm_diff; in compare_random()
2256 return diff; in compare_random()
2609 diff_reversed (int diff, bool reversed) in diff_reversed() argument
2611 return reversed ? (diff < 0) - (diff > 0) : diff; in diff_reversed()
2629 int diff; in keycompare() local
2693 diff = numcompare (ta, tb); in keycompare()
2695 diff = general_numcompare (ta, tb); in keycompare()
2697 diff = human_numcompare (ta, tb); in keycompare()
2699 diff = getmonth (ta, nullptr) - getmonth (tb, nullptr); in keycompare()
2701 diff = compare_random (ta, tlena, tb, tlenb); in keycompare()
2703 diff = filenvercmp (ta, tlena, tb, tlenb); in keycompare()
2709 diff = - NONZERO (tlenb); in keycompare()
2711 diff = 1; in keycompare()
2713 diff = xmemcoll0 (ta, tlena + 1, tb, tlenb + 1); in keycompare()
2734 diff = (texta < lima) - (textb < limb); \ in keycompare()
2737 diff = to_uchar (A) - to_uchar (B); \ in keycompare()
2738 if (diff) \ in keycompare()
2757 diff = 0; in keycompare()
2763 diff = (to_uchar (translate[to_uchar (texta[i])]) in keycompare()
2765 if (diff) in keycompare()
2772 diff = memcmp (texta, textb, lenmin); in keycompare()
2774 if (! diff) in keycompare()
2775 diff = (lena > lenb) - (lena < lenb); in keycompare()
2778 if (diff) in keycompare()
2806 return diff_reversed (diff, key->reverse); in keycompare()
2815 int diff; in compare() local
2823 diff = keycompare (a, b); in compare()
2824 if (diff || unique || stable) in compare()
2825 return diff; in compare()
2833 diff = - NONZERO (blen); in compare()
2835 diff = 1; in compare()
2842 diff = xmemcoll0 (a->text, alen + 1, b->text, blen + 1); in compare()
2846 diff = memcmp (a->text, b->text, MIN (alen, blen)); in compare()
2847 if (!diff) in compare()
2848 diff = (alen > blen) - (alen < blen); in compare()
2851 return diff_reversed (diff, reverse); in compare()