Home
last modified time | relevance | path

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

12

/PHP-8.1/Zend/
H A Dzend_sort.c25 if (cmp(a, b) > 0) { in zend_sort_2()
32 if (!(cmp(a, b) > 0)) { in zend_sort_3()
37 if (cmp(a, b) > 0) { in zend_sort_3()
42 if (!(cmp(c, b) > 0)) { in zend_sort_3()
47 if (cmp(b, c) > 0) { in zend_sort_3()
55 if (cmp(c, d) > 0) { in zend_sort_4()
57 if (cmp(b, c) > 0) { in zend_sort_4()
59 if (cmp(a, b) > 0) { in zend_sort_4()
69 if (cmp(d, e) > 0) { in zend_sort_5()
71 if (cmp(c, d) > 0) { in zend_sort_5()
[all …]
H A Dzend_sort.h24 ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
25 ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_…
H A Dzend_strtod.c1070 cmp in cmp() function
1123 i = cmp(a,b);
2247 if (cmp(b, S) >= 0) {
3113 i = cmp(delta, bs);
3162 if (cmp(delta, bs) <= 0)
3254 if (cmp(delta, bs) > 0)
4211 if (cmp(b,S) < 0) { in zend_dtoa()
4251 j = cmp(b, mlo); in zend_dtoa()
4253 j1 = delta->sign ? 1 : cmp(b, delta); in zend_dtoa()
4293 j1 = cmp(b, S); in zend_dtoa()
[all …]
H A Dzend_operators.c3271 int cmp = strcmp(&ptr[-digits], long_min_digits); local
3273 if (!(cmp < 0 || (cmp == 0 && *str == '-'))) {
/PHP-8.1/ext/standard/tests/array/
H A Darray_diff_single_array.phpt7 $cmp = function($a, $b) { return $a <=> $b; };
10 var_dump(array_diff_ukey($array, $cmp));
12 var_dump(array_diff_uassoc($array, $cmp));
13 var_dump(array_udiff($array, $cmp));
14 var_dump(array_udiff_assoc($array, $cmp));
15 var_dump(array_udiff_uassoc($array, $cmp, $cmp));
H A D003.phpt9 function cmp ($a, $b) {
18 uasort ($data, 'cmp');
23 uksort ($data, 'cmp');
27 usort ($data, 'cmp');
H A Duasort_basic1.phpt8 function cmp($value1, $value2)
23 var_dump( uasort($int_values, 'cmp') );
29 var_dump( uasort($string_values, 'cmp') );
35 var_dump( uasort($numeric_key_arg, 'cmp') );
41 var_dump( uasort($string_key_arg, 'cmp') );
H A Dusort_basic.phpt11 function cmp($value1, $value2)
27 var_dump( usort($int_values, 'cmp') );
34 var_dump( usort($string_values, 'cmp') );
41 var_dump( usort($numeric_key_arg, 'cmp') );
48 var_dump( usort($string_key_arg, 'cmp') );
H A Duasort_basic2.phpt8 function cmp($value1, $value2)
23 var_dump( uasort($int_values1, 'cmp') );
29 var_dump( uasort($int_values2, 'cmp') );
35 var_dump( uasort($int_values3, 'cmp') );
H A Duksort_basic.phpt8 function cmp($a, $b) {
15 uasort($a, "cmp");
H A Dusort_variation10.phpt11 function cmp($value1, $value2)
29 var_dump( usort($array_arg, 'cmp') );
36 var_dump( usort($array_arg, 'cmp') );
H A Duasort_variation11.phpt12 function cmp($value1, $value2)
27 var_dump( uasort($array_arg, 'cmp') );
33 var_dump( uasort($array_arg, 'cmp') );
/PHP-8.1/ext/spl/tests/
H A DarrayObject_uasort_basic1.phpt13 function cmp($value1, $value2) {
25 $ao->uasort('cmp');
H A DarrayObject_uksort_basic1.phpt12 function cmp($value1, $value2) {
24 $ao->uksort('cmp');
/PHP-8.1/Zend/tests/
H A Druntime_compile_time_binary_operands.phpt109 function prepareBinaryLine($op1, $op2, $cmp, $operator) {
118 $result = makeParam($cmp());
126 function prepareUnaryLine($op, $cmp, $operator) {
134 $result = makeParam($cmp());
/PHP-8.1/ext/standard/tests/strings/
H A Dstrcmp_unterminated.phpt2 strnat(case)cmp(): potential OOB access for unterminated strings
/PHP-8.1/ext/spl/
H A Dspl_heap.c58 spl_ptr_heap_cmp_func cmp; member
264 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
270 heap->cmp = cmp; in spl_ptr_heap_init()
293 …for (i = heap->count; i > 0 && heap->cmp(spl_heap_elem(heap, (i-1)/2), elem, cmp_userdata) < 0; i … in spl_ptr_heap_insert()
336 …if (j != heap->count && heap->cmp(spl_heap_elem(heap, j+1), spl_heap_elem(heap, j), cmp_userdata) … in spl_ptr_heap_delete_top()
341 if(heap->cmp(bottom, spl_heap_elem(heap, j), cmp_userdata) < 0) { in spl_ptr_heap_delete_top()
368 heap->cmp = from->cmp; in spl_ptr_heap_clone()
689 intern->heap->cmp = new_cmp; in PHP_METHOD()
690 } else if (new_cmp != intern->heap->cmp) { /* Despecialize on type conflict. */ in PHP_METHOD()
691 intern->heap->cmp = spl_ptr_pqueue_elem_cmp; in PHP_METHOD()
/PHP-8.1/ext/standard/
H A Dstring.c5465 char cmp; local
5505 cmp = needle[0];
5664 cmp = _mm_and_si128(lt, gt);
5665 if (_mm_movemask_epi8(cmp)) {
5666 cmp = _mm_and_si128(cmp, add);
5672 cmp = _mm_and_si128(lt, gt);
5674 cmp = _mm_and_si128(cmp, sub);
5680 cmp = _mm_and_si128(lt, gt);
5682 cmp = _mm_and_si128(cmp, add);
5688 cmp = _mm_and_si128(lt, gt);
[all …]
H A Darray.c632 bucket_compare_func_t cmp; in PHP_FUNCTION() local
642 zend_hash_sort(Z_ARRVAL_P(array), cmp, 0); in PHP_FUNCTION()
653 bucket_compare_func_t cmp; in PHP_FUNCTION() local
663 zend_hash_sort(Z_ARRVAL_P(array), cmp, 0); in PHP_FUNCTION()
789 bucket_compare_func_t cmp; in PHP_FUNCTION() local
799 zend_hash_sort(Z_ARRVAL_P(array), cmp, 0); in PHP_FUNCTION()
810 bucket_compare_func_t cmp; in PHP_FUNCTION() local
831 bucket_compare_func_t cmp; in PHP_FUNCTION() local
852 bucket_compare_func_t cmp; in PHP_FUNCTION() local
4434 bucket_compare_func_t cmp; local
[all …]
H A Dvar_unserializer.re957 int cmp = strncmp((char*)YYCURSOR - MAX_LENGTH_OF_LONG, long_min_digits, MAX_LENGTH_OF_LONG - 1);
959 if (!(cmp < 0 || (cmp == 0 && start[2] == '-'))) {
/PHP-8.1/ext/opcache/jit/
H A Dzend_jit_x86.dasc278 | cmp mem, tmp_reg
452 | cmp IPl, addr
1219 | cmp type, val
1224 | cmp type, val
1921 | cmp RX, EX->call
5199 | cmp r1, 0
5240 | cmp r1, 0
9494 | cmp r0, r1
9499 | cmp r0, func
9785 | cmp r0, r1
[all …]
H A Dzend_jit_arm64.dasc373 | cmp reg, wzr
375 | cmp reg, #val
380 | cmp reg, tmp_reg
386 | cmp reg, xzr
388 | cmp reg, #val
393 | cmp reg, tmp_reg
399 | cmp reg, xzr
401 | cmp reg, #val
1295 | cmp type, #val
1304 | cmp type, #val
[all …]
/PHP-8.1/ext/json/
H A Djson_scanner.re175 int cmp = strncmp((char *) (s->token + negative), LONG_MIN_DIGITS, PHP_JSON_INT_MAX_LENGTH);
176 if (!(cmp < 0 || (cmp == 0 && negative))) {
/PHP-8.1/ext/date/lib/
H A Dparse_tz.c590 int cmp = timelib_strcasecmp(timezone, tzdb->index[mid].id); in seek_to_tz_position() local
592 if (cmp < 0) { in seek_to_tz_position()
594 } else if (cmp > 0) { in seek_to_tz_position()
/PHP-8.1/build/
H A Dshtool923 if cmp -s "$src" "$dst"; then

Completed in 278 milliseconds

12