Home
last modified time | relevance | path

Searched refs:SORT_CMP (Results 1 – 2 of 2) sorted by relevance

/external/libxml2/
Dtimsort.h97 #ifndef SORT_CMP
98 #define SORT_CMP(x, y) ((x) < (y) ? -1 : ((x) == (y) ? 0 : 1)) macro
142 if (SORT_CMP(x, lx) < 0) in BINARY_INSERTION_FIND()
144 else if (SORT_CMP(x, lx) == 0) in BINARY_INSERTION_FIND()
147 while (SORT_CMP(x, dst[i]) == 0) i++; in BINARY_INSERTION_FIND()
154 const int val = SORT_CMP(x, cx); in BINARY_INSERTION_FIND()
171 } while (SORT_CMP(x, cx) == 0); in BINARY_INSERTION_FIND()
189 if (SORT_CMP(dst[i - 1], dst[i]) <= 0) continue; in BINARY_INSERTION_SORT_START()
227 if (SORT_CMP(dst[size - 2], dst[size - 1]) > 0) in COUNT_RUN()
234 if (SORT_CMP(dst[start], dst[start + 1]) <= 0) in COUNT_RUN()
[all …]
Dxpath.c461 #define SORT_CMP(x, y) (wrap_cmp(x, y)) macro