Lines Matching refs:cmp
69 static void setup(u_char *list1, u_char *list2, size_t n, size_t size, int (*cmp)(const void *, con…
70 static void insertionsort(u_char *a, size_t n, size_t size, int (*cmp)(const void *, const void * T…
105 PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void… in php_mergesort()
133 setup(list1, list2, nmemb, size, cmp TSRMLS_CC); in php_mergesort()
147 if ((*cmp)(f1, f2 TSRMLS_CC) <= 0) { in php_mergesort()
157 while ((b += size) < t && cmp(q, b TSRMLS_CC) >sense) in php_mergesort()
166 (*cmp)(q, p TSRMLS_CC) <= sense) in php_mergesort()
171 } else if ((*cmp)(q, p TSRMLS_CC) <= sense) { in php_mergesort()
180 if ((*cmp)(q, p = b + i TSRMLS_CC) <= sense) in php_mergesort()
187 if ((*cmp)(q, in php_mergesort()
265 static void setup(u_char *list1, u_char *list2, size_t n, size_t size, int (*cmp)(const void *, con… in setup()
272 insertionsort(list1, n, size, cmp TSRMLS_CC); in setup()
281 insertionsort(list1 + (n - i) * size, i, size, cmp TSRMLS_CC); in setup()
288 sense = (cmp(f1, f1 + size TSRMLS_CC) > 0); in setup()
293 if ((cmp(f2, f2+ size TSRMLS_CC) > 0) != sense) in setup()
306 if ((cmp(f2-size, f2 TSRMLS_CC) > 0) != sense) { in setup()
316 if (f2 < last || cmp(f2 - size, f2 TSRMLS_CC) > 0) in setup()
325 if (cmp (f1, f1 + size TSRMLS_CC) > 0) in setup()
336 static void insertionsort(u_char *a, size_t n, size_t size, int (*cmp)(const void *, const void * T… in insertionsort()
344 if (cmp(u, t TSRMLS_CC) <= 0) in insertionsort()