/PHP-7.4/ext/bcmath/libbcmath/src/ |
H A D | compare.c | 47 bc_num n1, n2; in _bc_do_compare() 57 if (n1->n_sign == PLUS) 64 if (n1->n_len != n2->n_len) 66 if (n1->n_len > n2->n_len) 69 if (!use_sign || n1->n_sign == PLUS) 86 count = n1->n_len + MIN (n1->n_scale, n2->n_scale); 87 n1ptr = n1->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 [all …]
|
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); 57 diff->n_sign = n1->n_sign; 63 cmp_res = _bc_do_compare (n1, n2, FALSE, FALSE); 68 diff = _bc_do_sub (n2, n1, scale_min); 73 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale)); 79 diff = _bc_do_sub (n1, n2, scale_min); 80 diff->n_sign = n1->n_sign;
|
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); 57 sum->n_sign = n1->n_sign; 62 cmp_res = _bc_do_compare (n1, n2, FALSE, FALSE); /* Compare magnitudes. */ 67 sum = _bc_do_sub (n2, n1, scale_min); 72 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale)); 78 sum = _bc_do_sub (n1, n2, scale_min); 79 sum->n_sign = n1->n_sign;
|
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() 70 n1bytes = n1->n_scale; 72 n1ptr = (char *) (n1->n_value + n1->n_len + n1bytes - 1); 88 n1bytes += n1->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); 164 n1ptr = (char *) (n1->n_value + n1->n_len + n1->n_scale -1); [all …]
|
H A D | div.c | 87 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument 107 qval = bc_new_num (n1->n_len, scale); in bc_divide() 108 qval->n_sign = (n1->n_sign == n2->n_sign ? PLUS : MINUS); in bc_divide() 109 memset (&qval->n_value[n1->n_len],0,scale); in bc_divide() 110 memcpy (qval->n_value, n1->n_value, in bc_divide() 111 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide() 123 len1 = n1->n_len + scale2; in bc_divide() 124 scale1 = n1->n_scale - scale2; in bc_divide() 129 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide() 130 memset (num1, 0, n1->n_len+n1->n_scale+extra+2); in bc_divide() [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 | recmul.c | 72 _bc_simp_mul (bc_num n1, int n1len, bc_num n2, int n2len, bc_num *prod, in _bc_simp_mul() argument 83 n1end = (char *) (n1->n_value + n1len - 1); in _bc_simp_mul() 93 while ((n1ptr >= n1->n_value) && (n2ptr <= n2end)) in _bc_simp_mul() 269 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale) in bc_multiply() argument 276 len1 = n1->n_len + n1->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-7.4/ext/oci8/tests/ |
H A D | bind_sqltchr_1.phpt | 49 $n1 = 42; 50 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); 59 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); 67 $n1 = 0; 68 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); 77 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); 86 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); 95 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); 104 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); 113 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_CHR); [all …]
|
H A D | bind_sqltnum_11g.phpt | 87 $n1 = 42; 88 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 97 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 105 $n1 = 0; 106 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 115 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 124 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 133 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 142 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 151 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); [all …]
|
H A D | bind_sqltnum.phpt | 87 $n1 = 42; 88 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 97 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 105 $n1 = 0; 106 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 115 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 124 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 133 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 142 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); 151 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM); [all …]
|
H A D | bind_sqltint.phpt | 48 $n1 = 42; 49 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); 58 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); 66 $n1 = 0; 67 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); 76 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); 85 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); 94 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); 103 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); 112 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_INT); [all …]
|
H A D | bind_misccoltypes.phpt | 92 $n1 = "86"; 106 oci_bind_by_name($s, ":n1", $n1); 187 $n1 = 3; 188 oci_bind_by_name($s, ":n1", $n1); 197 $n1 = 8.67; 198 oci_bind_by_name($s, ":n1", $n1); 207 $n1 = 4.67; 208 oci_bind_by_name($s, ":n1", $n1); 217 oci_bind_by_name($s, ":n1", $n1); 224 $n1 = -5.67; [all …]
|
H A D | bind_misccoltypes_errs.phpt | 50 $n1 = -23253245.3432467; 52 $s = oci_parse($c, "INSERT INTO bind_misccoltypes_errs_tab (id, number_t6) VALUES (1, :n1)"); 53 oci_bind_by_name($s, ":n1", $n1); 60 $n1 = "Hello"; 62 $s = oci_parse($c, "INSERT INTO bind_misccoltypes_errs_tab (id, number_t6) VALUES (2, :n1)"); 63 oci_bind_by_name($s, ":n1", $n1);
|
/PHP-7.4/ext/gmp/tests/ |
H A D | gmp_invert.phpt | 17 $n1 = gmp_init("3498273496234234523451"); 19 var_dump(gmp_strval(gmp_invert($n, $n1))); 20 var_dump(gmp_strval(gmp_invert($n1, $n))); 22 var_dump(gmp_invert($n1, $n, 10)); 23 var_dump(gmp_invert($n1));
|
H A D | gmp_cmp.phpt | 17 $n1 = gmp_init("827278512385463739"); 18 var_dump(gmp_cmp($n1,$n)); 20 var_dump(gmp_cmp($n1,$n,1));
|
H A D | gmp_hamdist.phpt | 14 $n1 = gmp_init("987654445678"); 17 var_dump(gmp_hamdist($n, $n1)); 19 var_dump(gmp_hamdist($n, $n1, 1));
|
H A D | gmp_and.phpt | 17 $n1 = gmp_init("987657878765436543456"); 18 var_dump(gmp_strval(gmp_and($n, $n1))); 20 var_dump(gmp_and($n, $n1, 1));
|
H A D | gmp_jacobi.phpt | 17 $n1 = "1231231"; 19 var_dump(gmp_strval(gmp_jacobi($n, $n1))); 21 var_dump(gmp_strval(gmp_jacobi(3, $n1)));
|
H A D | gmp_legendre.phpt | 17 $n1 = "1231231"; 19 var_dump(gmp_strval(gmp_legendre($n, $n1))); 21 var_dump(gmp_strval(gmp_legendre(3, $n1)));
|
H A D | gmp_or.phpt | 17 $n1 = gmp_init("987657878765436543456"); 18 var_dump(gmp_strval(gmp_or($n, $n1))); 20 var_dump(gmp_or($n, $n1, 1));
|
H A D | gmp_xor.phpt | 17 $n1 = gmp_init("987657878765436543456"); 18 var_dump(gmp_strval(gmp_xor($n, $n1))); 20 var_dump(gmp_xor($n, $n1, 1));
|
/PHP-7.4/ext/standard/ |
H A D | versioning.c | 127 char *p1, *p2, *n1, *n2; in php_version_compare() local 148 p1 = n1 = ver1; in php_version_compare() 150 while (*p1 && *p2 && n1 && n2) { in php_version_compare() 151 if ((n1 = strchr(p1, '.')) != NULL) { in php_version_compare() 152 *n1 = '\0'; in php_version_compare() 176 if (n1 != NULL) { in php_version_compare() 177 p1 = n1 + 1; in php_version_compare() 184 if (n1 != NULL) { in php_version_compare()
|
/PHP-7.4/ext/ctype/tests/ |
H A D | 002.phpt | 12 $n1 = $n2 = $n3 = 0; 16 if($function($a)) $n1++; 20 print "$function $n1 $n2 $n3\n";
|
/PHP-7.4/ext/pcre/tests/ |
H A D | bug76909.phpt | 17 $n1 = preg_match($reg1, $data, $m1); 19 var_dump($n0, $n1, count($m0), count($m1));
|