/php-src/ext/bcmath/libbcmath/src/ |
H A D | add.c | 42 bc_num bc_add(bc_num n1, bc_num n2, size_t scale_min) in bc_add() argument 46 if (n1->n_sign == n2->n_sign) { in bc_add() 47 sum = _bc_do_add(n1, n2); in bc_add() 52 switch (_bc_do_compare(n1, n2, scale_min, false)) { in bc_add() 55 sum = _bc_do_sub(n2, n1); in bc_add() 56 sum->n_sign = n2->n_sign; in bc_add() 60 sum = bc_new_num (1, MAX(scale_min, MAX(n1->n_scale, n2->n_scale))); in bc_add() 64 sum = _bc_do_sub(n1, n2); in bc_add()
|
H A D | sub.c | 42 bc_num bc_sub(bc_num n1, bc_num n2, size_t scale_min) in bc_sub() argument 46 if (n1->n_sign != n2->n_sign) { in bc_sub() 47 diff = _bc_do_add(n1, n2); in bc_sub() 52 switch (_bc_do_compare(n1, n2, scale_min, false)) { in bc_sub() 55 diff = _bc_do_sub(n2, n1); in bc_sub() 56 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS); in bc_sub() 60 size_t res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale)); in bc_sub() 66 diff = _bc_do_sub(n1, n2); in bc_sub()
|
H A D | doaddsub.c | 41 bc_num _bc_do_add(bc_num n1, bc_num n2) in _bc_do_add() argument 44 size_t sum_len = MAX(n1->n_len, n2->n_len) + 1; in _bc_do_add() 45 size_t sum_scale = MAX(n1->n_scale, n2->n_scale); in _bc_do_add() 46 size_t min_len = MIN (n1->n_len, n2->n_len); in _bc_do_add() 58 n2ptr = (char *) (n2->n_value + n2->n_len + n2->n_scale - 1); in _bc_do_add() 143 if (n1->n_len != n2->n_len) { in _bc_do_add() 144 if (n2->n_len > n1->n_len) { in _bc_do_add() 172 bc_num _bc_do_sub(bc_num n1, bc_num n2) in _bc_do_sub() argument 176 size_t diff_len = EXPECTED(n1->n_len >= n2->n_len) ? n1->n_len : n2->n_len; in _bc_do_sub() 179 size_t min_len = n1->n_len >= n2->n_len ? n2->n_len : n1->n_len; in _bc_do_sub() [all …]
|
H A D | compare.c | 42 bcmath_compare_result _bc_do_compare(bc_num n1, bc_num n2, size_t scale, bool use_sign) in _bc_do_compare() argument 47 if (use_sign && n1->n_sign != n2->n_sign) { in _bc_do_compare() 58 if (n1->n_len != n2->n_len) { in _bc_do_compare() 59 if (n1->n_len > n2->n_len) { in _bc_do_compare() 77 size_t n2_scale = MIN(n2->n_scale, scale); in _bc_do_compare() 83 n2ptr = n2->n_value; in _bc_do_compare() 142 bcmath_compare_result bc_compare(bc_num n1, bc_num n2, size_t scale) in bc_compare() argument 144 return _bc_do_compare(n1, n2, scale, true); in bc_compare()
|
H A D | bcmath.h | 112 bcmath_compare_result bc_compare(bc_num n1, bc_num n2, size_t scale); 124 bc_num bc_add(bc_num n1, bc_num n2, size_t scale_min); 126 #define bc_add_ex(n1, n2, result, scale_min) do { \ argument 127 bc_num add_ex = bc_add(n1, n2, scale_min); \ 132 bc_num bc_sub(bc_num n1, bc_num n2, size_t scale_min); 134 #define bc_sub_ex(n1, n2, result, scale_min) do { \ argument 135 bc_num sub_ex = bc_sub(n1, n2, scale_min); \ 140 bc_num bc_multiply(bc_num n1, bc_num n2, size_t scale); 142 #define bc_multiply_ex(n1, n2, result, scale_min) do { \ argument 143 bc_num mul_ex = bc_multiply(n1, n2, scale_min); \ [all …]
|
H A D | recmul.c | 55 static inline void bc_fast_mul(bc_num n1, size_t n1len, bc_num n2, size_t n2len, bc_num *prod) in bc_fast_mul() argument 58 const char *n2end = n2->n_value + n2len - 1; in bc_fast_mul() 141 static void bc_standard_mul(bc_num n1, size_t n1len, bc_num n2, size_t n2len, bc_num *prod) in bc_standard_mul() argument 145 const char *n2end = n2->n_value + n2len - 1; in bc_standard_mul() 243 bc_num bc_multiply(bc_num n1, bc_num n2, size_t scale) in bc_multiply() argument 249 size_t len2 = n2->n_len + n2->n_scale; in bc_multiply() 250 size_t full_scale = n1->n_scale + n2->n_scale; in bc_multiply() 251 size_t prod_scale = MIN(full_scale, MAX(scale, MAX(n1->n_scale, n2->n_scale))); in bc_multiply() 255 bc_fast_mul(n1, len1, n2, len2, &prod); in bc_multiply() 257 bc_standard_mul(n1, len1, n2, len2, &prod); in bc_multiply() [all …]
|
H A D | private.h | 72 bcmath_compare_result _bc_do_compare (bc_num n1, bc_num n2, size_t scale, bool use_sign); 73 bc_num _bc_do_add (bc_num n1, bc_num n2); 74 bc_num _bc_do_sub (bc_num n1, bc_num n2);
|
/php-src/ext/standard/tests/filters/ |
H A D | chunked_001.phpt | 14 "data://text/plain,2\r\nte\r\n2\r\nst\r\n0\r\n", 15 "data://text/plain,2\nte\n2\nst\n0\n", 16 "data://text/plain,2;a=1\nte\n2;a=2;b=3\r\nst\n0\n", 17 "data://text/plain,2\nte\n2\nst\n0\na=b\r\nc=d\n\r\n", 19 "data://text/plain,1E\n0123456789abcdef0123456789abcd\n2\nef\n0\n",
|
/php-src/ext/opcache/tests/jit/ |
H A D | gh12512.phpt | 20 $n2 = count($a); 22 $n = $n2; 24 $n2 = count($a); 25 } while ($res === null && $n !== $n2);
|
/php-src/ext/standard/ |
H A D | versioning.c | 125 char *p1, *p2, *n1, *n2; in php_version_compare() local 147 p2 = n2 = ver2; in php_version_compare() 148 while (*p1 && *p2 && n1 && n2) { in php_version_compare() 152 if ((n2 = strchr(p2, '.')) != NULL) { in php_version_compare() 153 *n2 = '\0'; in php_version_compare() 177 if (n2 != NULL) { in php_version_compare() 178 p2 = n2 + 1; in php_version_compare() 188 } else if (n2 != NULL) { in php_version_compare()
|
/php-src/ext/ctype/tests/ |
H A D | 002.phpt | 12 $n1 = $n2 = $n3 = 0; 17 if($function("$c$c$c")) $n2++; 20 print "$function $n1 $n2 $n3\n";
|
/php-src/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_utf16.c | 535 uint16_t n2 = (c3 << 8) | c4; in mb_utf16be_to_wchar_default() local 537 if (n2 >= 0xD800 && n2 <= 0xDBFF) { in mb_utf16be_to_wchar_default() 541 } else if (n2 >= 0xDC00 && n2 <= 0xDFFF) { in mb_utf16be_to_wchar_default() 546 *out++ = n2; in mb_utf16be_to_wchar_default() 585 out = mb_convert_buf_add4(out, (n1 >> 8) & 0xFF, n1 & 0xFF, (n2 >> 8) & 0xFF, n2 & 0xFF); in mb_wchar_to_utf16be_default() 613 uint16_t n2 = (c4 << 8) | c3; in mb_utf16le_to_wchar_default() local 615 if (n2 >= 0xD800 && n2 <= 0xDBFF) { in mb_utf16le_to_wchar_default() 619 } else if (n2 >= 0xDC00 && n2 <= 0xDFFF) { in mb_utf16le_to_wchar_default() 624 *out++ = n2; in mb_utf16le_to_wchar_default() 663 out = mb_convert_buf_add4(out, n1 & 0xFF, (n1 >> 8) & 0xFF, n2 & 0xFF, (n2 >> 8) & 0xFF); in mb_wchar_to_utf16le_default() [all …]
|
H A D | mbfilter_utf7imap.c | 541 unsigned char n2 = decode_base64(*p++); in mb_utf7imap_to_wchar() local 542 if (is_base64_end(n2) || p == e) { in mb_utf7imap_to_wchar() 543 out = handle_base64_end(n2, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar() 551 out = handle_utf16_cp((n1 << 10) | (n2 << 4) | ((n3 & 0x3C) >> 2), out, &surrogate1); in mb_utf7imap_to_wchar() 769 unsigned char n2 = decode_base64(*p++); in mb_check_utf7imap() local 770 if (is_base64_end(n2) || p == e) { in mb_check_utf7imap() 777 uint16_t cp1 = (n1 << 10) | (n2 << 4) | ((n3 & 0x3C) >> 2); in mb_check_utf7imap()
|
H A D | mbfilter_utf7.c | 527 unsigned char n2 = decode_base64(*p++); in mb_utf7_to_wchar() local 528 if (is_base64_end(n2) || p == e) { in mb_utf7_to_wchar() 529 out = handle_base64_end(n2, &p, out, &base64, true, &surrogate1); in mb_utf7_to_wchar() 537 out = handle_utf16_cp((n1 << 10) | (n2 << 4) | ((n3 & 0x3C) >> 2), out, &surrogate1); in mb_utf7_to_wchar() 755 unsigned char n2 = decode_base64(*p++); in mb_check_utf7() local 756 if (is_base64_end(n2) || p == e) { in mb_check_utf7() 763 uint16_t cp1 = (n1 << 10) | (n2 << 4) | ((n3 & 0x3C) >> 2); in mb_check_utf7()
|
/php-src/ext/standard/tests/general_functions/ |
H A D | get_defined_constants_basic.phpt | 17 $n2 = count($arr2); 19 if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {
|
/php-src/ext/sodium/tests/ |
H A D | crypto_stream_xchacha20.phpt | 38 $n2 = random_bytes(SODIUM_CRYPTO_STREAM_XCHACHA20_NONCEBYTES); 43 $stream7_unified = sodium_crypto_stream_xchacha20_xor($left . $right, $n2, $key); 46 $stream7_left = sodium_crypto_stream_xchacha20_xor_ic($left, $n2, 0, $key); 47 $stream7_right = sodium_crypto_stream_xchacha20_xor_ic($right, $n2, 1, $key);
|
/php-src/tests/lang/ |
H A D | syntax_errors.phpt | 18 "[1,\n2,\n3,", /* unclosed [, spans multiple lines */ 21 "[1,\n2,\n3]];", /* too many ], spans multiple lines */ 24 "[1,\n2,\n3)]", /* ) doesn't match [, spans multiple lines */
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 1022 bc_num n1, bc_num n2, bc_num *ret, in bcmath_number_add_internal() argument 1028 *ret = bc_add(n1, n2, *scale); in bcmath_number_add_internal() 1040 *ret = bc_sub(n1, n2, *scale); in bcmath_number_sub_internal() 1113 long exponent = bc_num2long(n2); in bcmath_number_pow_internal() 1139 if (UNEXPECTED(exponent == 0 && (n2->n_len > 1 || n2->n_value[0] != 0))) { in bcmath_number_pow_internal() 1240 bc_num n2 = NULL; in bcmath_number_do_operation() local 1293 bc_free_num(&n2); in bcmath_number_do_operation() 1311 bc_free_num(&n2); in bcmath_number_do_operation() 1327 bc_num n2 = NULL; in bcmath_number_compare() local 1351 ret = bc_compare(n1, n2, MAX(n1->n_scale, n2->n_scale)); in bcmath_number_compare() [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | bug53503.phpt | 37 if (FALSE == file_put_contents('bug53503.data', "1\n2\n3\n"))
|
H A D | bug68077.phpt | 40 if (FALSE == file_put_contents(__DIR__ . '/bug53503.data', "1\n2\n3\n"))
|
/php-src/ext/standard/tests/http/ |
H A D | ignore_errors.phpt | 17 "data://text/plain,HTTP/1.1 404 Not found\r\nX-bar: baz\r\n\r\n2",
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_gcm.c | 738 uint32_t n1, n2, pos; in ir_xlat_binding() local 746 n2 = 0; in ir_xlat_binding() 767 n2++; in ir_xlat_binding() 772 binding->count = n2; in ir_xlat_binding()
|
/php-src/ext/dom/ |
H A D | node.c | 1678 for (const type *n2 = list2; n2 != NULL && !found; n2 = n2->next) { \ 1679 …if (php_dom_node_is_equal_node((const xmlNode *) n1, (const xmlNode *) n2, spec_compliant)) { …
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 3556 ir_ref n2, k2; in _zend_jit_fix_merges() local 3564 n2 = 1 + (n >> 2); in _zend_jit_fix_merges() 3566 while (k2 != n2) { in _zend_jit_fix_merges() 3583 n2 = 1 + ((n + 1) >> 2); in _zend_jit_fix_merges() 3585 while (k2 != n2) { in _zend_jit_fix_merges()
|