Home
last modified time | relevance | path

Searched refs:n1 (Results 1 – 25 of 39) sorted by relevance

12

/PHP-8.2/ext/bcmath/libbcmath/src/
H A Dcompare.c47 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 Dadd.c46 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 Dsub.c46 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 Ddoaddsub.c46 _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 Ddiv.c83 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument
103 qval = bc_new_num (n1->n_len, scale); in bc_divide()
104 qval->n_sign = (n1->n_sign == n2->n_sign ? PLUS : MINUS); in bc_divide()
105 memset (&qval->n_value[n1->n_len],0,scale); in bc_divide()
106 memcpy (qval->n_value, n1->n_value, in bc_divide()
107 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide()
119 len1 = n1->n_len + scale2; in bc_divide()
120 scale1 = n1->n_scale - scale2; in bc_divide()
125 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide()
126 memset (num1, 0, n1->n_len+n1->n_scale+extra+2); in bc_divide()
[all …]
H A Dprivate.h35 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 Drecmul.c69 _bc_simp_mul (bc_num n1, int n1len, bc_num n2, int n2len, bc_num *prod, in _bc_simp_mul() argument
80 n1end = (char *) (n1->n_value + n1len - 1); in _bc_simp_mul()
90 while ((n1ptr >= n1->n_value) && (n2ptr <= n2end)) in _bc_simp_mul()
266 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale) in bc_multiply() argument
273 len1 = n1->n_len + n1->n_scale; in bc_multiply()
275 full_scale = n1->n_scale + n2->n_scale; in bc_multiply()
276 prod_scale = MIN(full_scale,MAX(scale,MAX(n1->n_scale,n2->n_scale))); in bc_multiply()
279 _bc_rec_mul (n1, len1, n2, len2, &pval, full_scale); in bc_multiply()
282 pval->n_sign = ( n1->n_sign == n2->n_sign ? PLUS : MINUS ); in bc_multiply()
H A Dbcmath.h109 int bc_compare(bc_num n1, bc_num n2);
119 void bc_add(bc_num n1, bc_num n2, bc_num *result, int scale_min);
121 void bc_sub(bc_num n1, bc_num n2, bc_num *result, int scale_min);
123 void bc_multiply(bc_num n1, bc_num n2, bc_num *prod, int scale);
125 int bc_divide(bc_num n1, bc_num n2, bc_num *quot, int scale);
/PHP-8.2/ext/oci8/tests/
H A Dbind_sqltchr_1.phpt49 $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 Dbind_sqltnum.phpt88 $n1 = 42;
89 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
98 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
106 $n1 = 0;
107 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
116 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
125 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
134 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
143 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
152 oci_bind_by_name($s, ":n1", $n1, -1, SQLT_NUM);
[all …]
H A Dbind_sqltint.phpt48 $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 Dbind_misccoltypes.phpt94 $n1 = "86";
108 oci_bind_by_name($s, ":n1", $n1);
189 $n1 = 3;
190 oci_bind_by_name($s, ":n1", $n1);
199 $n1 = 8.67;
200 oci_bind_by_name($s, ":n1", $n1);
209 $n1 = 4.67;
210 oci_bind_by_name($s, ":n1", $n1);
219 oci_bind_by_name($s, ":n1", $n1);
226 $n1 = -5.67;
[all …]
H A Dbind_misccoltypes_errs.phpt50 $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-8.2/ext/standard/
H A Dversioning.c125 char *p1, *p2, *n1, *n2; in php_version_compare() local
146 p1 = n1 = ver1; in php_version_compare()
148 while (*p1 && *p2 && n1 && n2) { in php_version_compare()
149 if ((n1 = strchr(p1, '.')) != NULL) { in php_version_compare()
150 *n1 = '\0'; in php_version_compare()
174 if (n1 != NULL) { in php_version_compare()
175 p1 = n1 + 1; in php_version_compare()
182 if (n1 != NULL) { in php_version_compare()
/PHP-8.2/ext/ctype/tests/
H A D002.phpt12 $n1 = $n2 = $n3 = 0;
16 if($function($c)) $n1++;
20 print "$function $n1 $n2 $n3\n";
/PHP-8.2/ext/gmp/tests/
H A Dgmp_jacobi.phpt17 $n1 = "1231231";
19 var_dump(gmp_strval(gmp_jacobi($n, $n1)));
21 var_dump(gmp_strval(gmp_jacobi(3, $n1)));
H A Dgmp_legendre.phpt17 $n1 = "1231231";
19 var_dump(gmp_strval(gmp_legendre($n, $n1)));
21 var_dump(gmp_strval(gmp_legendre(3, $n1)));
H A Dgmp_invert.phpt23 $n1 = gmp_init("3498273496234234523451");
25 var_dump(gmp_strval(gmp_invert($n, $n1)));
26 var_dump(gmp_strval(gmp_invert($n1, $n)));
H A Dgmp_cmp.phpt17 $n1 = gmp_init("827278512385463739");
18 var_dump(gmp_cmp($n1,$n));
H A Dgmp_divexact.phpt37 $n1 = gmp_init("-100000000000000000000000000");
38 $r = gmp_divexact($n1, $n);
H A Dgmp_hamdist.phpt14 $n1 = gmp_init("987654445678");
17 var_dump(gmp_hamdist($n, $n1));
H A Dgmp_gcdext.phpt9 $n1 = gmp_init("23434293864345");
21 array($n, $n1),
H A Dgmp_or.phpt22 $n1 = gmp_init("987657878765436543456");
23 var_dump(gmp_strval(gmp_or($n, $n1)));
/PHP-8.2/ext/pcre/tests/
H A Dbug76909.phpt17 $n1 = preg_match($reg1, $data, $m1);
19 var_dump($n0, $n1, count($m0), count($m1));
/PHP-8.2/ext/standard/tests/general_functions/
H A Dget_defined_constants_basic.phpt14 $n1 = count(get_defined_constants());
19 if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {

Completed in 34 milliseconds

12