Home
last modified time | relevance | path

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

/PHP-5.6/ext/bcmath/libbcmath/src/
H A Dcompare.c47 _bc_do_compare (n1, n2, use_sign, ignore_last) in _bc_do_compare() argument
48 bc_num n1, n2; in _bc_do_compare()
56 if (use_sign && n1->n_sign != n2->n_sign)
65 if (n1->n_len != n2->n_len)
67 if (n1->n_len > n2->n_len)
89 n2ptr = n2->n_value;
120 if (n1->n_scale != n2->n_scale)
122 if (n1->n_scale > n2->n_scale)
156 bc_compare (n1, n2) in bc_compare() argument
157 bc_num n1, n2; in bc_compare()
[all …]
H A Dadd.c47 bc_add (n1, n2, result, scale_min) in bc_add() argument
48 bc_num n1, n2, *result; in bc_add()
55 if (n1->n_sign == n2->n_sign)
57 sum = _bc_do_add (n1, n2, scale_min);
63 cmp_res = _bc_do_compare (n1, n2, FALSE, FALSE); /* Compare magnitudes. */
68 sum = _bc_do_sub (n2, n1, scale_min);
69 sum->n_sign = n2->n_sign;
73 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale));
79 sum = _bc_do_sub (n1, n2, scale_min);
H A Dsub.c47 bc_sub (n1, n2, result, scale_min) in bc_sub() argument
48 bc_num n1, n2, *result; in bc_sub()
55 if (n1->n_sign != n2->n_sign)
57 diff = _bc_do_add (n1, n2, scale_min);
64 cmp_res = _bc_do_compare (n1, n2, FALSE, FALSE);
69 diff = _bc_do_sub (n2, n1, scale_min);
70 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS);
74 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale));
80 diff = _bc_do_sub (n1, n2, scale_min);
H A Ddoaddsub.c47 _bc_do_add (n1, n2, scale_min) in _bc_do_add() argument
48 bc_num n1, n2; in _bc_do_add()
58 sum_scale = MAX (n1->n_scale, n2->n_scale);
72 n2bytes = n2->n_scale;
74 n2ptr = (char *) (n2->n_value + n2->n_len + n2bytes - 1);
90 n2bytes += n2->n_len;
139 _bc_do_sub (n1, n2, scale_min) in _bc_do_sub() argument
140 bc_num n1, n2; in _bc_do_sub()
150 diff_len = MAX (n1->n_len, n2->n_len);
152 min_len = MIN (n1->n_len, n2->n_len);
[all …]
H A Ddiv.c88 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale TSRMLS_DC) in bc_divide() argument
101 if (bc_is_zero (n2 TSRMLS_CC)) return -1; in bc_divide()
104 if (n2->n_scale == 0) in bc_divide()
106 if (n2->n_len == 1 && *n2->n_value == 1) in bc_divide()
109 qval->n_sign = (n1->n_sign == n2->n_sign ? PLUS : MINUS); in bc_divide()
120 scale2 = n2->n_scale; in bc_divide()
121 n2ptr = (unsigned char *) n2->n_value+n2->n_len+scale2-1; in bc_divide()
135 len2 = n2->n_len + scale2; in bc_divide()
138 memcpy (num2, n2->n_value, len2); in bc_divide()
261 qval->n_sign = ( n1->n_sign == n2->n_sign ? PLUS : MINUS ); in bc_divide()
H A Dprivate.h40 int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last);
41 bc_num _bc_do_add (bc_num n1, bc_num n2, int scale_min);
42 bc_num _bc_do_sub (bc_num n1, bc_num n2, int scale_min);
H A Drecmul.c81 _bc_simp_mul (bc_num n1, int n1len, bc_num n2, int n2len, bc_num *prod, in _bc_simp_mul() argument
93 n2end = (char *) (n2->n_value + n2len - 1); in _bc_simp_mul()
278 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale TSRMLS_DC) in bc_multiply() argument
286 len2 = n2->n_len + n2->n_scale; in bc_multiply()
287 full_scale = n1->n_scale + n2->n_scale; in bc_multiply()
288 prod_scale = MIN(full_scale,MAX(scale,MAX(n1->n_scale,n2->n_scale))); in bc_multiply()
291 _bc_rec_mul (n1, len1, n2, len2, &pval, full_scale TSRMLS_CC); in bc_multiply()
294 pval->n_sign = ( n1->n_sign == n2->n_sign ? PLUS : MINUS ); in bc_multiply()
H A Dbcmath.h120 _PROTOTYPE(int bc_compare, (bc_num n1, bc_num n2));
128 _PROTOTYPE(void bc_add, (bc_num n1, bc_num n2, bc_num *result, int scale_min));
130 _PROTOTYPE(void bc_sub, (bc_num n1, bc_num n2, bc_num *result, int scale_min));
132 _PROTOTYPE(void bc_multiply, (bc_num n1, bc_num n2, bc_num *prod, int scale TSRMLS_DC));
134 _PROTOTYPE(int bc_divide, (bc_num n1, bc_num n2, bc_num *quot, int scale TSRMLS_DC));
/PHP-5.6/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-5.6/ext/standard/
H A Dversioning.c131 char *p1, *p2, *n1, *n2; in php_version_compare() local
153 p2 = n2 = ver2; in php_version_compare()
154 while (*p1 && *p2 && n1 && n2) { in php_version_compare()
158 if ((n2 = strchr(p2, '.')) != NULL) { in php_version_compare()
159 *n2 = '\0'; in php_version_compare()
183 if (n2 != NULL) { in php_version_compare()
184 p2 = n2 + 1; in php_version_compare()
194 } else if (n2 != NULL) { in php_version_compare()
/PHP-5.6/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-5.6/ext/standard/tests/general_functions/
H A Dget_defined_constants_basic.phpt22 $n2 = count($arr2);
24 if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {
/PHP-5.6/ext/mysql/tests/
H A Dbug53649.phpt16 if (false === file_put_contents('bug53649.data', "1\n2\n3\n"))
39 if (false === file_put_contents('bug53649.data', "1\n2\n3\n"))
/PHP-5.6/ext/oci8/tests/
H A Dbind_misccoltypes.phpt77 . " :n2, "
96 $n2 = "-123.456";
110 oci_bind_by_name($s, ":n2", $n2);
/PHP-5.6/ext/mysqli/tests/
H A Dbug53503.phpt34 if (FALSE == file_put_contents('bug53503.data', "1\n2\n3\n"))
H A Dbug68077.phpt38 if (FALSE == file_put_contents(__DIR__ . '/bug53503.data', "1\n2\n3\n"))
/PHP-5.6/ext/standard/tests/http/
H A Dignore_errors.phpt17 "data://text/plain,HTTP/1.0 404 Not found\r\nX-bar: baz\r\n\r\n2",
/PHP-5.6/ext/mbstring/oniguruma/
H A Dregparse.c1930 OnigCodePoint i, j, n1, n2, *data1, *data2; in and_code_range_buf() local
1951 GET_CODE_POINT(n2, data2); in and_code_range_buf()
1959 for (j = 0; j < n2; j++) { in and_code_range_buf()
1975 r = and_code_range1(pbuf, from1, to1, data2, n2); in and_code_range_buf()
/PHP-5.6/ext/sqlite3/libsqlite/
H A Dsqlite3.c68196 int n1, n2;
68206 n2 = v2==0 ? 0 : c2.n;
78713 int n2;
78717 getVarint32(&p2[1], n2); n2 = (n2 - 13) / 2;
78718 res = memcmp(v1, v2, MIN(n1, n2));
78720 res = n1 - n2;
135438 char *pEnd2 = &a2[n2];
140832 if( n1!=n2 ) return 1;
140848 if( n1!=n2 ) return 1;
144596 int n = (n1<n2 ? n1 : n2);
[all …]
/PHP-5.6/ext/pcre/pcrelib/testdata/
H A Dtestinput21466 "(?P<n0>a)(?P<n1>b)(?P<n2>c)(?P<n3>d)(?P<n4>e)(?P<n5>f)(?P<n6>g)(?P<n7>h)(?P<n8>i)(?P<n9>j)(?P<n10>…
H A Dtestoutput25855 "(?P<n0>a)(?P<n1>b)(?P<n2>c)(?P<n3>d)(?P<n4>e)(?P<n5>f)(?P<n6>g)(?P<n7>h)(?P<n8>i)(?P<n9>j)(?P<n10>…
5863 n2 3

Completed in 358 milliseconds