Home
last modified time | relevance | path

Searched refs:n2 (Results 1 – 24 of 24) sorted by relevance

/php-src/ext/bcmath/libbcmath/src/
H A Dadd.c42 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 Dsub.c42 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 Dcompare.c47 if (use_sign && n1->n_sign != n2->n_sign) { in _bc_do_compare()
52 if ((n1->n_scale > scale || n2->n_scale > scale) && in _bc_do_compare()
53 n1->n_len == 1 && n2->n_len == 1 && in _bc_do_compare()
54 n1->n_value[0] == 0 && n2->n_value[0] == 0 && in _bc_do_compare()
55 bc_is_zero_for_scale(n1, scale) && bc_is_zero_for_scale(n2, scale) in _bc_do_compare()
70 if (n1->n_len != n2->n_len) { in _bc_do_compare()
71 if (n1->n_len > n2->n_len) { in _bc_do_compare()
89 size_t n2_scale = MIN(n2->n_scale, scale); in _bc_do_compare()
95 n2ptr = n2->n_value; in _bc_do_compare()
154 bcmath_compare_result bc_compare(bc_num n1, bc_num n2, size_t scale) in bc_compare() argument
[all …]
H A Ddoaddsub.c41 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 Dbcmath.h112 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 Drecmul.c55 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 Dprivate.h72 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 Dchunked_001.phpt14 "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 Dgh12512.phpt20 $n2 = count($a);
22 $n = $n2;
24 $n2 = count($a);
25 } while ($res === null && $n !== $n2);
/php-src/ext/standard/
H A Dversioning.c125 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 D002.phpt12 $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 Dmbfilter_utf16.c535 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 Dmbfilter_utf7imap.c541 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 Dmbfilter_utf7.c527 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 Dget_defined_constants_basic.phpt17 $n2 = count($arr2);
19 if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {
/php-src/ext/sodium/tests/
H A Dcrypto_stream_xchacha20.phpt38 $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 Dsyntax_errors.phpt18 "[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 Dbcmath.c1022 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 Dbug53503.phpt37 if (FALSE == file_put_contents('bug53503.data', "1\n2\n3\n"))
H A Dbug68077.phpt40 if (FALSE == file_put_contents(__DIR__ . '/bug53503.data', "1\n2\n3\n"))
/php-src/ext/standard/tests/http/
H A Dignore_errors.phpt17 "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 Dir_gcm.c740 uint32_t n1, n2, pos; in ir_xlat_binding() local
748 n2 = 0; in ir_xlat_binding()
769 n2++; in ir_xlat_binding()
774 binding->count = n2; in ir_xlat_binding()
/php-src/ext/dom/
H A Dnode.c1678 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 Dzend_jit_ir.c3682 ir_ref n2, k2; in _zend_jit_fix_merges() local
3690 n2 = 1 + (n >> 2); in _zend_jit_fix_merges()
3692 while (k2 != n2) { in _zend_jit_fix_merges()
3709 n2 = 1 + ((n + 1) >> 2); in _zend_jit_fix_merges()
3711 while (k2 != n2) { in _zend_jit_fix_merges()

Completed in 106 milliseconds