Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 31) sorted by relevance

12

/PHP-5.3/main/
H A Dmergesort.c133 setup(list1, list2, nmemb, size, cmp TSRMLS_CC); in php_mergesort()
147 if ((*cmp)(f1, f2 TSRMLS_CC) <= 0) { in php_mergesort()
166 (*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()
272 insertionsort(list1, n, 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()
325 if (cmp (f1, f1 + size TSRMLS_CC) > 0) in setup()
[all …]
H A Dphp.h327 PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, c…
/PHP-5.3/ext/standard/tests/array/
H A D003.phpt9 function cmp ($a, $b) {
18 uasort ($data, 'cmp');
23 uksort ($data, 'cmp');
27 usort ($data, 'cmp');
H A Duasort_basic1.phpt13 /* Prototype : int cmp(mixed $value1, mixed $value2)
20 function cmp($value1, $value2)
35 var_dump( uasort($int_values, 'cmp') );
41 var_dump( uasort($string_values, 'cmp') );
47 var_dump( uasort($numeric_key_arg, 'cmp') );
53 var_dump( uasort($string_key_arg, 'cmp') );
H A Duasort_basic2.phpt13 /* Prototype : int cmp(mixed $value1, mixed $value2)
20 function cmp($value1, $value2)
35 var_dump( uasort($int_values1, 'cmp') );
41 var_dump( uasort($int_values2, 'cmp') );
47 var_dump( uasort($int_values3, 'cmp') );
H A Dusort_basic.phpt16 function cmp($value1, $value2)
32 var_dump( usort($int_values, 'cmp') );
39 var_dump( usort($string_values, 'cmp') );
46 var_dump( usort($numeric_key_arg, 'cmp') );
53 var_dump( usort($string_key_arg, 'cmp') );
H A Duasort_variation9.phpt16 /* Prototype : int cmp(mixed &$value1, mixed &$value2)
23 function cmp(&$value1, &$value2)
38 var_dump( uasort($int_values, 'cmp') );
44 var_dump( uasort($string_values, 'cmp') );
H A Duksort_basic.phpt9 function cmp($a, $b) {
16 uasort($a, "cmp");
H A Duasort_variation11.phpt17 /* Prototype : int cmp(mixed $value1, mixed $value2)
24 function cmp($value1, $value2)
39 var_dump( uasort($array_arg, 'cmp') );
45 var_dump( uasort($array_arg, 'cmp') );
H A Dusort_variation10.phpt16 function cmp($value1, $value2)
34 var_dump( usort($array_arg, 'cmp') );
41 var_dump( usort($array_arg, 'cmp') );
H A Duasort_error.phpt13 /* Prototype : int cmp(mixed $value1, mixed $value2)
20 function cmp($value1, $value2)
43 var_dump( uasort($array_arg, 'cmp', $extra_arg) );
H A Dusort_error2.phpt18 function cmp($value1, $value2)
H A Duasort_object1.phpt18 /* Prototype : int cmp(mixed $value1, mixed $value2)
/PHP-5.3/ext/zip/lib/
H A Dzip_name_locate.c54 int (*cmp)(const char *, const char *); in _zip_name_locate() local
71 cmp = (flags & ZIP_FL_NOCASE) ? strcmpi : strcmp; in _zip_name_locate()
90 if (cmp(fname, fn) == 0) in _zip_name_locate()
/PHP-5.3/TSRM/
H A Dbuildconf14 if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then
27 if cmp configure.old configure > /dev/null 2>&1; then
/PHP-5.3/Zend/
H A Dbuildconf14 if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then
27 if cmp configure.old configure > /dev/null 2>&1; then
H A Dzend_strtod.c888 static int cmp(Bigint *a, Bigint *b) in cmp() function
927 i = cmp(a,b); in diff()
1343 if (cmp(b, S) >= 0) { in quorem()
1894 if (cmp(b,S) < 0) { in zend_dtoa()
1903 if (ilim < 0 || cmp(b,S = multadd(S,5,0)) <= 0) { in zend_dtoa()
1934 j = cmp(b, mlo); in zend_dtoa()
1936 j1 = delta->sign ? 1 : cmp(b, delta); in zend_dtoa()
1955 j1 = cmp(b, S); in zend_dtoa()
1995 j = cmp(b, S); in zend_dtoa()
2379 i = cmp(delta, bs); in zend_strtod()
[all …]
H A Dzend_operators.h201 int cmp = strcmp(&ptr[-digits], long_min_digits); local
203 if (!(cmp < 0 || (cmp == 0 && *str == '-'))) {
/PHP-5.3/ext/spl/tests/
H A DarrayObject_uasort_basic1.phpt15 function cmp($value1, $value2) {
27 $ao->uasort('cmp');
H A DarrayObject_uksort_basic1.phpt14 function cmp($value1, $value2) {
26 $ao->uksort('cmp');
/PHP-5.3/ext/spl/
H A Dspl_heap.c62 spl_ptr_heap_cmp_func cmp; member
224 static spl_ptr_heap *spl_ptr_heap_init(spl_ptr_heap_cmp_func cmp, spl_ptr_heap_ctor_func ctor, spl_… in spl_ptr_heap_init() argument
230 heap->cmp = cmp; in spl_ptr_heap_init()
252 …for(i = heap->count++; i > 0 && heap->cmp(heap->elements[(i-1)/2], elem, cmp_userdata TSRMLS_CC) <… in spl_ptr_heap_insert()
292 …if(j != heap->count && heap->cmp(heap->elements[j+1], heap->elements[j], cmp_userdata TSRMLS_CC) >… in spl_ptr_heap_delete_top()
297 if(heap->cmp(bottom, heap->elements[j], cmp_userdata TSRMLS_CC) < 0) { in spl_ptr_heap_delete_top()
322 heap->cmp = from->cmp; in spl_ptr_heap_clone()
428 intern->heap->cmp = spl_ptr_pqueue_zval_cmp; in spl_heap_object_new_ex()
435 intern->heap->cmp = spl_ptr_heap_zval_min_cmp; in spl_heap_object_new_ex()
440 intern->heap->cmp = spl_ptr_heap_zval_max_cmp; in spl_heap_object_new_ex()
/PHP-5.3/ext/date/lib/
H A Dparse_tz.c274 int cmp = strcasecmp(timezone, tzdb->index[mid].id); in seek_to_tz_position() local
276 if (cmp < 0) { in seek_to_tz_position()
278 } else if (cmp > 0) { in seek_to_tz_position()
/PHP-5.3/ext/standard/
H A Dvar_unserializer.re480 int cmp = strncmp(YYCURSOR - MAX_LENGTH_OF_LONG, long_min_digits, MAX_LENGTH_OF_LONG - 1);
482 if (!(cmp < 0 || (cmp == 0 && start[2] == '-'))) {
H A Dvar_unserializer.c1048 int cmp = strncmp(YYCURSOR - MAX_LENGTH_OF_LONG, long_min_digits, MAX_LENGTH_OF_LONG - 1); in php_var_unserialize() local
1050 if (!(cmp < 0 || (cmp == 0 && start[2] == '-'))) { in php_var_unserialize()
/PHP-5.3/ext/json/
H A DJSON_parser.c306 int cmp = strcmp(buf->c + (buf->c[0] == '-'), long_min_digits); in json_create_zval() local
308 if (!(cmp < 0 || (cmp == 0 && buf->c[0] == '-'))) { in json_create_zval()

Completed in 41 milliseconds

12