Home
last modified time | relevance | path

Searched refs:num1 (Results 1 – 25 of 38) sorted by last modified time

12

/php-src/ext/bcmath/libbcmath/src/
H A Dbcmath.h144 bool bc_modulo(bc_num num1, bc_num num2, bc_num *resul, size_t scale);
146 bool bc_divmod(bc_num num1, bc_num num2, bc_num *quo, bc_num *rem, size_t scale);
H A Ddivmod.c44 bool bc_divmod(bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, size_t scale) in bc_divmod() argument
56 rscale = MAX (num1->n_scale, num2->n_scale + scale); in bc_divmod()
60 bc_divide(num1, num2, &temp, 0); in bc_divmod()
65 bc_sub_ex(num1, temp, rem, rscale); in bc_divmod()
80 bool bc_modulo(bc_num num1, bc_num num2, bc_num *result, size_t scale) in bc_modulo() argument
82 return bc_divmod(num1, num2, NULL, result, scale); in bc_modulo()
H A Draise.c42 void bc_raise(bc_num num1, long exponent, bc_num *result, size_t scale) in bc_raise() argument
64 rscale = MIN (num1->n_scale * exponent, MAX(scale, num1->n_scale)); in bc_raise()
68 power = bc_copy_num(num1); in bc_raise()
69 pwrscale = num1->n_scale; in bc_raise()
H A Ddiv.c82 unsigned char *num1, *num2; in bc_divide() local
120 memset(num1, 0, n1->n_len + n1->n_scale + extra + 2); in bc_divide()
121 memcpy(num1 + 1, n1->n_value, n1->n_len + n1->n_scale); in bc_divide()
159 _one_mult(num1, len1 + scale1 + extra + 1, norm, num1); in bc_divide()
174 if (*n2ptr == num1[qdig]) { in bc_divide()
177 qguess = (num1[qdig] * 10 + num1[qdig + 1]) / *n2ptr; in bc_divide()
181 …if (n2ptr[1] * qguess > (num1[qdig] * 10 + num1[qdig + 1] - *n2ptr * qguess) * 10 + num1[qdig + 2]… in bc_divide()
184 …if (n2ptr[1] * qguess > (num1[qdig] * 10 + num1[qdig + 1] - *n2ptr * qguess) * 10 + num1[qdig + 2]… in bc_divide()
194 ptr1 = (unsigned char *) num1 + qdig + len2; in bc_divide()
211 ptr1 = (unsigned char *) num1 + qdig + len2; in bc_divide()
[all …]
/php-src/ext/bcmath/
H A Dbcmath.stub.php6 function bcadd(string $num1, string $num2, ?int $scale = null): string {} argument
9 function bcsub(string $num1, string $num2, ?int $scale = null): string {} argument
12 function bcmul(string $num1, string $num2, ?int $scale = null): string {} argument
15 function bcdiv(string $num1, string $num2, ?int $scale = null): string {} argument
18 function bcmod(string $num1, string $num2, ?int $scale = null): string {} argument
29 function bccomp(string $num1, string $num2, ?int $scale = null): int {} argument
H A Dbcmath_arginfo.h5 ZEND_ARG_TYPE_INFO(0, num1, IS_STRING, 0)
37 ZEND_ARG_TYPE_INFO(0, num1, IS_STRING, 0)
/php-src/ext/standard/
H A Dbasic_functions.stub.php3198 function intdiv(int $num1, int $num2): int {}
3270 function fmod(float $num1, float $num2): float {}
3275 function fdiv(float $num1, float $num2): float {}
H A Dbasic_functions_arginfo.h1664 ZEND_ARG_TYPE_INFO(0, num1, IS_LONG, 0)
1729 ZEND_ARG_TYPE_INFO(0, num1, IS_DOUBLE, 0)
H A Dmath.c433 double num1, num2; in PHP_FUNCTION() local
436 Z_PARAM_DOUBLE(num1) in PHP_FUNCTION()
439 RETURN_DOUBLE(atan2(num1, num2)); in PHP_FUNCTION()
678 double num1, num2; in PHP_FUNCTION() local
681 Z_PARAM_DOUBLE(num1) in PHP_FUNCTION()
685 RETURN_DOUBLE(hypot(num1, num2)); in PHP_FUNCTION()
1363 double num1, num2; in PHP_FUNCTION() local
1366 Z_PARAM_DOUBLE(num1) in PHP_FUNCTION()
1370 RETURN_DOUBLE(fmod(num1, num2)); in PHP_FUNCTION()
/php-src/ext/gmp/tests/
H A Dgmp_invert.phpt64 gmp_invert(): Argument #1 ($num1) must be of type GMP|string|int, array given
66 gmp_invert(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_gcdext.phpt66 gmp_gcdext(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_jacobi.phpt60 gmp_jacobi(): Argument #1 ($num1) must be of type GMP|string|int, array given
61 gmp_jacobi(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_mod.phpt36 gmp_mod(): Argument #1 ($num1) is not an integer string
46 gmp_mod(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_scan0.phpt37 gmp_scan0(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_and.phpt50 gmp_and(): Argument #1 ($num1) is not an integer string
53 gmp_and(): Argument #1 ($num1) must be of type GMP|string|int, array given
55 gmp_and(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_cmp.phpt37 gmp_cmp(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_div_q.phpt79 gmp_div_q(): Argument #1 ($num1) must be of type GMP|string|int, resource given
80 gmp_div_q(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_div_qr.phpt162 gmp_div_qr(): Argument #1 ($num1) must be of type GMP|string|int, resource given
163 gmp_div_qr(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_div_r.phpt79 gmp_div_r(): Argument #1 ($num1) must be of type GMP|string|int, resource given
80 gmp_div_r(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_hamdist.phpt46 gmp_hamdist(): Argument #1 ($num1) must be of type GMP|string|int, array given
47 gmp_hamdist(): Argument #1 ($num1) must be of type GMP|string|int, array given
H A Dgmp_legendre.phpt60 gmp_legendre(): Argument #1 ($num1) must be of type GMP|string|int, array given
61 gmp_legendre(): Argument #1 ($num1) must be of type GMP|string|int, array given
/php-src/ext/gmp/
H A Dgmp_arginfo.h31 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
40 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
46 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
108 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
115 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
120 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
170 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
H A Dgmp.stub.php79 function gmp_add(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
81 function gmp_sub(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
83 function gmp_mul(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
98 function gmp_mod(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
134 function gmp_gcd(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
142 function gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
152 function gmp_cmp(GMP|int|string $num1, GMP|int|string $num2): int {} argument
162 function gmp_and(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
164 function gmp_or(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument
176 function gmp_scan0(GMP|int|string $num1, int $start): int {} argument
[all …]
/php-src/ext/random/
H A Dphp_random_uint128.h51 static inline php_random_uint128_t php_random_uint128_add(php_random_uint128_t num1, php_random_uin… in php_random_uint128_add() argument
55 r.lo = (num1.lo + num2.lo); in php_random_uint128_add()
56 r.hi = (num1.hi + num2.hi + (r.lo < num1.lo)); in php_random_uint128_add()
61 static inline php_random_uint128_t php_random_uint128_multiply(php_random_uint128_t num1, php_rando… in php_random_uint128_multiply() argument
65 x0 = num1.lo & 0xffffffffULL, in php_random_uint128_multiply()
66 x1 = num1.lo >> 32, in php_random_uint128_multiply()
71 r.hi = num1.hi * num2.lo + num1.lo * num2.hi; in php_random_uint128_multiply()
72 r.lo = num1.lo * num2.lo; in php_random_uint128_multiply()
108 static inline php_random_uint128_t php_random_uint128_add(php_random_uint128_t num1, php_random_uin… in php_random_uint128_add() argument
110 return num1 + num2; in php_random_uint128_add()
[all …]
/php-src/ext/intl/collator/
H A Dcollator_sort.c55 zval num1, num2; in collator_regular_compare_function() local
69 ( str1_p == ( num1_p = collator_convert_string_to_number_if_possible( str1_p, &num1 ) ) || in collator_regular_compare_function()
138 zval num1, num2; in collator_numeric_compare_function() local
144 num1_p = collator_convert_string_to_double( op1, &num1 ); in collator_numeric_compare_function()

Completed in 84 milliseconds

12