/PHP-8.0/ext/bcmath/libbcmath/src/ |
H A D | compare.c | 46 _bc_do_compare (n1, n2, use_sign, ignore_last) in _bc_do_compare() argument 47 bc_num n1, n2; in _bc_do_compare() 55 if (use_sign && n1->n_sign != n2->n_sign) 64 if (n1->n_len != n2->n_len) 66 if (n1->n_len > n2->n_len) 88 n2ptr = n2->n_value; 119 if (n1->n_scale != n2->n_scale) 121 if (n1->n_scale > n2->n_scale) 155 bc_compare (n1, n2) in bc_compare() argument 156 bc_num n1, n2; in bc_compare() [all …]
|
H A D | add.c | 46 bc_add (n1, n2, result, scale_min) in bc_add() argument 47 bc_num n1, n2, *result; in bc_add() 54 if (n1->n_sign == n2->n_sign) 56 sum = _bc_do_add (n1, n2, scale_min); 62 cmp_res = _bc_do_compare (n1, n2, FALSE, FALSE); /* Compare magnitudes. */ 67 sum = _bc_do_sub (n2, n1, scale_min); 68 sum->n_sign = n2->n_sign; 72 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale)); 78 sum = _bc_do_sub (n1, n2, scale_min);
|
H A D | sub.c | 46 bc_sub (n1, n2, result, scale_min) in bc_sub() argument 47 bc_num n1, n2, *result; in bc_sub() 54 if (n1->n_sign != n2->n_sign) 56 diff = _bc_do_add (n1, n2, scale_min); 63 cmp_res = _bc_do_compare (n1, n2, FALSE, FALSE); 68 diff = _bc_do_sub (n2, n1, scale_min); 69 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS); 73 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale)); 79 diff = _bc_do_sub (n1, n2, scale_min);
|
H A D | doaddsub.c | 46 _bc_do_add (n1, n2, scale_min) in _bc_do_add() argument 47 bc_num n1, n2; in _bc_do_add() 57 sum_scale = MAX (n1->n_scale, n2->n_scale); 71 n2bytes = n2->n_scale; 73 n2ptr = (char *) (n2->n_value + n2->n_len + n2bytes - 1); 89 n2bytes += n2->n_len; 138 _bc_do_sub (n1, n2, scale_min) in _bc_do_sub() argument 139 bc_num n1, n2; in _bc_do_sub() 149 diff_len = MAX (n1->n_len, n2->n_len); 151 min_len = MIN (n1->n_len, n2->n_len); [all …]
|
H A D | private.h | 35 int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last); 36 bc_num _bc_do_add (bc_num n1, bc_num n2, int scale_min); 37 bc_num _bc_do_sub (bc_num n1, bc_num n2, int scale_min);
|
H A D | div.c | 87 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument 100 if (bc_is_zero (n2)) return -1; in bc_divide() 103 if (n2->n_scale == 0) in bc_divide() 105 if (n2->n_len == 1 && *n2->n_value == 1) in bc_divide() 108 qval->n_sign = (n1->n_sign == n2->n_sign ? PLUS : MINUS); in bc_divide() 119 scale2 = n2->n_scale; in bc_divide() 120 n2ptr = (unsigned char *) n2->n_value+n2->n_len+scale2-1; in bc_divide() 133 len2 = n2->n_len + scale2; in bc_divide() 135 memcpy (num2, n2->n_value, len2); in bc_divide() 257 qval->n_sign = ( n1->n_sign == n2->n_sign ? PLUS : MINUS ); in bc_divide()
|
H A D | recmul.c | 72 _bc_simp_mul (bc_num n1, int n1len, bc_num n2, int n2len, bc_num *prod, in _bc_simp_mul() argument 84 n2end = (char *) (n2->n_value + n2len - 1); in _bc_simp_mul() 269 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale) in bc_multiply() argument 277 len2 = n2->n_len + n2->n_scale; in bc_multiply() 278 full_scale = n1->n_scale + n2->n_scale; in bc_multiply() 279 prod_scale = MIN(full_scale,MAX(scale,MAX(n1->n_scale,n2->n_scale))); in bc_multiply() 282 _bc_rec_mul (n1, len1, n2, len2, &pval, full_scale); in bc_multiply() 285 pval->n_sign = ( n1->n_sign == n2->n_sign ? PLUS : MINUS ); in bc_multiply()
|
H A D | bcmath.h | 119 _PROTOTYPE(int bc_compare, (bc_num n1, bc_num n2)); 129 _PROTOTYPE(void bc_add, (bc_num n1, bc_num n2, bc_num *result, int scale_min)); 131 _PROTOTYPE(void bc_sub, (bc_num n1, bc_num n2, bc_num *result, int scale_min)); 133 _PROTOTYPE(void bc_multiply, (bc_num n1, bc_num n2, bc_num *prod, int scale)); 135 _PROTOTYPE(int bc_divide, (bc_num n1, bc_num n2, bc_num *quot, int scale));
|
/PHP-8.0/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-8.0/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-8.0/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-8.0/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-8.0/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-8.0/ext/oci8/tests/ |
H A D | bind_misccoltypes.phpt | 77 . " :n2, " 96 $n2 = "-123.456"; 110 oci_bind_by_name($s, ":n2", $n2);
|
/PHP-8.0/ext/mysqli/tests/ |
H A D | bug53503.phpt | 36 if (FALSE == file_put_contents('bug53503.data', "1\n2\n3\n"))
|
H A D | bug68077.phpt | 41 if (FALSE == file_put_contents(__DIR__ . '/bug53503.data', "1\n2\n3\n"))
|
/PHP-8.0/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",
|