/php-src/ext/random/ |
H A D | php_random_uint128.h | 51 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/gmp/ |
H A D | gmp.stub.php | 79 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 D | gmp_arginfo.h | 31 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-src/ext/bcmath/libbcmath/src/ |
H A D | divmod.c | 44 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() 86 bool bc_modulo(bc_num num1, bc_num num2, bc_num *result, size_t scale) in bc_modulo() argument 88 return bc_divmod(num1, num2, NULL, result, scale); in bc_modulo()
|
/php-src/ext/bcmath/tests/ |
H A D | str2num_formatting.phpt | 103 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 D | bcmul_check_overflow.phpt | 11 $num1 = str_repeat('99999999', $repeat); 17 $actual = bcmul($num1, $num1);
|
/php-src/Zend/tests/ |
H A D | bw_or_assign_with_ref.phpt | 6 $num1 = 1; 9 $num1 |= $num2; 10 var_dump($num1);
|
/php-src/ext/bcmath/ |
H A D | bcmath.stub.php | 8 function bcadd(string $num1, string $num2, ?int $scale = null): string {} argument 11 function bcsub(string $num1, string $num2, ?int $scale = null): string {} argument 14 function bcmul(string $num1, string $num2, ?int $scale = null): string {} argument 17 function bcdiv(string $num1, string $num2, ?int $scale = null): string {} argument 20 function bcmod(string $num1, string $num2, ?int $scale = null): string {} argument 26 function bcdivmod(string $num1, string $num2, ?int $scale = null): array {} argument 37 function bccomp(string $num1, string $num2, ?int $scale = null): int {} argument
|
/php-src/ext/gmp/tests/ |
H A D | gmp_sub.phpt | 40 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 D | gmp_and.phpt | 50 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 D | gmp_or.phpt | 49 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 D | gmp_xor.phpt | 49 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 D | gmp_mod.phpt | 36 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 D | gmp_hamdist.phpt | 46 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 D | gmp_jacobi.phpt | 60 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 D | gmp_legendre.phpt | 60 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 D | gmp_div_q.phpt | 79 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 D | gmp_div_r.phpt | 79 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 D | gmp_invert.phpt | 64 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
|
/php-src/ext/bcmath/tests/number/operators/ |
H A D | sub_int.phpt | 14 $num1 = new BcMath\Number($value1); 18 $ret = $num1 - ((int) $value2);
|
H A D | add_int.phpt | 14 $num1 = new BcMath\Number($value1); 18 $ret = $num1 + ((int) $value2);
|
H A D | mul_int.phpt | 14 $num1 = new BcMath\Number($value1); 18 $ret = $num1 * ((int) $value2);
|
H A D | div_int.phpt | 15 $num1 = new BcMath\Number($value1); 19 $ret = $num1 / ((int) $value2);
|
H A D | mod_int.phpt | 15 $num1 = new BcMath\Number($value1); 19 $ret = $num1 % ((int) $value2);
|
H A D | mod_string.phpt | 15 $num1 = new BcMath\Number($value1); 19 $ret = $num1 % ((string) $value2);
|