/php-src/Zend/ |
H A D | zend_sort.c | 25 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 D | zend_sort.h | 26 ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp); 27 ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_…
|
H A D | zend_strtod.c | 1062 cmp in cmp() function 1115 i = cmp(a,b); 2239 if (cmp(b, S) >= 0) { 3105 i = cmp(delta, bs); 3154 if (cmp(delta, bs) <= 0) 3246 if (cmp(delta, bs) > 0) 4210 if (cmp(b,S) < 0) { in zend_dtoa() 4250 j = cmp(b, mlo); in zend_dtoa() 4252 j1 = delta->sign ? 1 : cmp(b, delta); in zend_dtoa() 4292 j1 = cmp(b, S); in zend_dtoa() [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | array_diff_single_array.phpt | 7 $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));
|
/php-src/ext/standard/tests/array/sort/ |
H A D | user_sort_basics.phpt | 9 function cmp ($a, $b) { 18 uasort ($data, 'cmp'); 23 uksort ($data, 'cmp'); 27 usort ($data, 'cmp');
|
H A D | usort_basic.phpt | 11 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 D | uasort_basic1.phpt | 8 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 D | uasort_basic2.phpt | 8 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 D | uksort_basic.phpt | 8 function cmp($a, $b) { 15 uasort($a, "cmp");
|
H A D | usort_variation10.phpt | 11 function cmp($value1, $value2) 29 var_dump( usort($array_arg, 'cmp') ); 36 var_dump( usort($array_arg, 'cmp') );
|
H A D | uasort_variation11.phpt | 12 function cmp($value1, $value2) 27 var_dump( uasort($array_arg, 'cmp') ); 33 var_dump( uasort($array_arg, 'cmp') );
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | hash.c | 22 .cmp = lexbor_str_data_ncmp 28 .cmp = lexbor_str_data_nlocmp_right 34 .cmp = lexbor_str_data_nupcmp_right 49 .cmp = lexbor_str_data_ncmp 54 .cmp = lexbor_str_data_nlocmp_right 59 .cmp = lexbor_str_data_nupcmp_right 208 if (entry->length == length && insert->cmp(str, key, length)) { in lexbor_hash_insert() 248 if (item->length == length && search->cmp(str, key, length)) { in lexbor_hash_insert_by_entry() 270 key, length, search->cmp); in lexbor_hash_remove() 278 key, length, search->cmp); in lexbor_hash_search()
|
H A D | hash.h | 78 lexbor_hash_cmp_f cmp; /* For compare key. */ member 84 lexbor_hash_cmp_f cmp; /* For compare key. */ member
|
/php-src/ext/spl/tests/ |
H A D | arrayObject_uasort_basic1.phpt | 13 function cmp($value1, $value2) { 25 $ao->uasort('cmp');
|
H A D | arrayObject_uksort_basic1.phpt | 12 function cmp($value1, $value2) { 24 $ao->uksort('cmp');
|
/php-src/Zend/tests/ |
H A D | runtime_compile_time_binary_operands.phpt | 115 function prepareBinaryLine($op1, $op2, $cmp, $operator) { 124 $result = makeParam($cmp()); 132 function prepareUnaryLine($op, $cmp, $operator) { 140 $result = makeParam($cmp());
|
/php-src/ext/standard/tests/strings/ |
H A D | strcmp_unterminated.phpt | 2 strnat(case)cmp(): potential OOB access for unterminated strings
|
/php-src/ext/spl/ |
H A D | spl_heap.c | 52 spl_ptr_heap_cmp_func cmp; member 252 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 258 heap->cmp = cmp; in spl_ptr_heap_init() 283 …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() 330 …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() 335 if(heap->cmp(bottom, spl_heap_elem(heap, j), cmp_userdata) < 0) { in spl_ptr_heap_delete_top() 364 heap->cmp = from->cmp; in spl_ptr_heap_clone() 695 intern->heap->cmp = new_cmp; in PHP_METHOD() 696 } else if (new_cmp != intern->heap->cmp) { /* Despecialize on type conflict. */ in PHP_METHOD() 697 intern->heap->cmp = spl_ptr_pqueue_elem_cmp; in PHP_METHOD()
|
/php-src/ext/json/ |
H A D | json_scanner.re | 175 int cmp = strncmp((char *) (s->token + negative), LONG_MIN_DIGITS, PHP_JSON_INT_MAX_LENGTH); 176 if (!(cmp < 0 || (cmp == 0 && negative))) {
|
/php-src/ext/standard/ |
H A D | string.c | 5872 cmp = _mm_and_si128(lt, gt); 5873 if (_mm_movemask_epi8(cmp)) { 5874 cmp = _mm_and_si128(cmp, add); 5880 cmp = _mm_and_si128(lt, gt); 5881 if (_mm_movemask_epi8(cmp)) { 5882 cmp = _mm_and_si128(cmp, sub); 5888 cmp = _mm_and_si128(lt, gt); 5889 if (_mm_movemask_epi8(cmp)) { 5890 cmp = _mm_and_si128(cmp, add); 5896 cmp = _mm_and_si128(lt, gt); [all …]
|
H A D | array.c | 572 bucket_compare_func_t cmp; in PHP_FUNCTION() local 582 zend_hash_sort(Z_ARRVAL_P(array), cmp, 0); in PHP_FUNCTION() 593 bucket_compare_func_t cmp; in PHP_FUNCTION() local 603 zend_hash_sort(Z_ARRVAL_P(array), cmp, 0); in PHP_FUNCTION() 731 bucket_compare_func_t cmp; in PHP_FUNCTION() local 741 zend_array_sort(Z_ARRVAL_P(array), cmp, 0); in PHP_FUNCTION() 752 bucket_compare_func_t cmp; in PHP_FUNCTION() local 773 bucket_compare_func_t cmp; in PHP_FUNCTION() local 794 bucket_compare_func_t cmp; in PHP_FUNCTION() local 4919 bucket_compare_func_t cmp; local [all …]
|
/php-src/ext/date/lib/ |
H A D | parse_tz.c | 590 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-src/ext/pcre/pcre2lib/sljit/ |
H A D | sljitNativeARM_64.c | 3315 sljit_ins cmp = 0; in sljit_emit_atomic_store() local 3323 cmp = (SUBS ^ W_OP) | RD(TMP_ZERO); in sljit_emit_atomic_store() 3339 if (cmp) in sljit_emit_atomic_store() 3340 cmp ^= W_OP; in sljit_emit_atomic_store() 3344 if (cmp) { in sljit_emit_atomic_store() 3349 if (!cmp) in sljit_emit_atomic_store() 3352 FAIL_IF(push_inst(compiler, cmp | RM(tmp) | RN(temp_reg))); in sljit_emit_atomic_store() 3354 return push_inst(compiler, cmp | RM(tmp) | RN(TMP_ZERO)); in sljit_emit_atomic_store() 3360 cmp = (SUBI ^ W_OP) | (1 << 29); in sljit_emit_atomic_store() 3379 return cmp ? push_inst(compiler, cmp | RD(TMP_ZERO) | RN(TMP_REG1)) : SLJIT_SUCCESS; in sljit_emit_atomic_store()
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_aarch64.dasc | 1844 | cmp Rx(tmp_reg), xzr 1964 | cmp Rx(op1_reg), Rx(op2_reg) 1980 | cmp Rw(op1_reg), Rw(op2_reg) 2199 | cmp Rx(op1_reg), #0 2208 | cmp Rw(op1_reg), #0 2490 | cmp Rx(op1_reg), #0 2493 | cmp Rw(op1_reg), #0 2714 | cmp Rx(op1_reg), #val 2716 | cmp Rw(op1_reg), #val 4399 | cmp Rw(tmp_reg), wzr [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | document.c | 27 .cmp = lexbor_str_data_ncasecmp, 33 .cmp = lexbor_str_data_ncasecmp,
|