Home
last modified time | relevance | path

Searched refs:num1 (Results 1 – 25 of 38) sorted by relevance

12

/PHP-8.2/ext/bcmath/libbcmath/src/
H A Ddiv.c86 unsigned char *num1, *num2; in bc_divide() local
169 _one_mult (num1, len1+scale1+extra+1, norm, num1); in bc_divide()
184 if (*n2ptr == num1[qdig]) in bc_divide()
187 qguess = (num1[qdig]*10 + num1[qdig+1]) / *n2ptr; in bc_divide()
191 (num1[qdig]*10 + num1[qdig+1] - *n2ptr*qguess)*10 in bc_divide()
192 + num1[qdig+2]) in bc_divide()
197 (num1[qdig]*10 + num1[qdig+1] - *n2ptr*qguess)*10 in bc_divide()
198 + num1[qdig+2]) in bc_divide()
208 ptr1 = (unsigned char *) num1+qdig+len2; in bc_divide()
228 ptr1 = (unsigned char *) num1+qdig+len2; in bc_divide()
[all …]
H A Ddivmod.c47 bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale) in bc_divmod() argument
57 rscale = MAX (num1->n_scale, num2->n_scale+scale); in bc_divmod()
61 bc_divide (num1, num2, &temp, 0); in bc_divmod()
65 bc_sub (num1, temp, rem, rscale); in bc_divmod()
82 bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_modulo() argument
84 return bc_divmod (num1, num2, NULL, result, scale); in bc_modulo()
H A Draise.c46 bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_raise() argument
86 rscale = MIN (num1->n_scale*exponent, MAX(scale, num1->n_scale)); in bc_raise()
90 power = bc_copy_num (num1); in bc_raise()
91 pwrscale = num1->n_scale; in bc_raise()
H A Dbcmath.h127 int bc_modulo(bc_num num1, bc_num num2, bc_num *resul, int scale);
129 int bc_divmod(bc_num num1, bc_num num2, bc_num *quo, bc_num *rem, int scale);
133 void bc_raise(bc_num num1, bc_num num2, bc_num *resul, int scale);
/PHP-8.2/ext/gmp/
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 …]
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)
/PHP-8.2/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-8.2/ext/bcmath/tests/
H A Dstr2num_formatting.phpt103 bcadd(): Argument #1 ($num1) is not well-formed
104 bcadd(): Argument #1 ($num1) is not well-formed
105 bcadd(): Argument #1 ($num1) is not well-formed
106 bcadd(): Argument #1 ($num1) is not well-formed
107 bcadd(): Argument #1 ($num1) is not well-formed
108 bcadd(): Argument #1 ($num1) is not well-formed
116 bccomp(): Argument #1 ($num1) is not well-formed
117 bccomp(): Argument #1 ($num1) is not well-formed
118 bccomp(): Argument #1 ($num1) is not well-formed
119 bccomp(): Argument #1 ($num1) is not well-formed
[all …]
H A Dbcadd_error.phpt22 bcadd(): Argument #1 ($num1) is not well-formed
H A Dbccomp_error.phpt22 bccomp(): Argument #1 ($num1) is not well-formed
H A Dbcdiv_error2.phpt22 bcdiv(): Argument #1 ($num1) is not well-formed
/PHP-8.2/Zend/tests/
H A Dbw_or_assign_with_ref.phpt6 $num1 = 1;
9 $num1 |= $num2;
10 var_dump($num1);
/PHP-8.2/ext/random/
H A Dphp_random.h119 static inline php_random_uint128_t php_random_uint128_add(php_random_uint128_t num1, php_random_uin… in php_random_uint128_add() argument
123 r.lo = (num1.lo + num2.lo); in php_random_uint128_add()
124 r.hi = (num1.hi + num2.hi + (r.lo < num1.lo)); in php_random_uint128_add()
129 static inline php_random_uint128_t php_random_uint128_multiply(php_random_uint128_t num1, php_rando… in php_random_uint128_multiply() argument
133 x0 = num1.lo & 0xffffffffULL, in php_random_uint128_multiply()
134 x1 = num1.lo >> 32, in php_random_uint128_multiply()
139 r.hi = num1.hi * num2.lo + num1.lo * num2.hi; in php_random_uint128_multiply()
140 r.lo = num1.lo * num2.lo; in php_random_uint128_multiply()
176 static inline php_random_uint128_t php_random_uint128_add(php_random_uint128_t num1, php_random_uin… in php_random_uint128_add() argument
178 return num1 + num2; in php_random_uint128_add()
[all …]
/PHP-8.2/ext/gmp/tests/
H A Dgmp_sub.phpt40 gmp_sub(): Argument #1 ($num1) is not an integer string
41 gmp_sub(): Argument #1 ($num1) must be of type GMP|string|int, array given
53 gmp_sub(): Argument #1 ($num1) must be of type GMP|string|int, stdClass given
H A Dgmp_or.phpt49 gmp_or(): Argument #1 ($num1) is not an integer string
52 gmp_or(): Argument #1 ($num1) must be of type GMP|string|int, array given
54 gmp_or(): 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_xor.phpt49 gmp_xor(): Argument #1 ($num1) is not an integer string
52 gmp_xor(): Argument #1 ($num1) must be of type GMP|string|int, array given
54 gmp_xor(): 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_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_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_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
H A Dgmp_invert.phpt56 gmp_invert(): Argument #1 ($num1) must be of type GMP|string|int, array given
58 gmp_invert(): 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_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

Completed in 34 milliseconds

12