/PHP-8.4/ext/bcmath/libbcmath/src/ |
H A D | raise.c | 54 if (exponent == 0) { in bc_raise() 61 if (exponent < 0) { in bc_raise() 63 exponent = -exponent; in bc_raise() 73 while ((exponent & 1) == 0) { in bc_raise() 76 exponent = exponent >> 1; in bc_raise() 80 exponent = exponent >> 1; in bc_raise() 83 while (exponent > 0) { in bc_raise() 86 if ((exponent & 1) == 1) { in bc_raise() 90 exponent = exponent >> 1; in bc_raise() 115 long exponent = bc_num2long(expo); in bc_raise_bc_exponent() local [all …]
|
H A D | raisemod.c | 39 bc_num power, exponent, modulus, parity, temp; in bc_raisemod() local 70 exponent = bc_copy_num(expo); in bc_raisemod() 76 while (!bc_is_zero(exponent)) { in bc_raisemod() 77 (void) bc_divmod(exponent, BCG(_two_), &exponent, &parity, 0); in bc_raisemod() 88 bc_free_num (&exponent); in bc_raisemod()
|
H A D | bcmath.h | 174 raise_mod_status bc_raisemod(bc_num base, bc_num exponent, bc_num mod, bc_num *result, size_t scale… 176 bool bc_raise(bc_num base, long exponent, bc_num *result, size_t scale); 178 void bc_raise_bc_exponent(bc_num base, bc_num exponent, bc_num *resul, size_t scale);
|
/PHP-8.4/ext/standard/tests/math/ |
H A D | pow_divisionbyzero.phpt | 40 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 43 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 46 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 49 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 52 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 55 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 62 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 65 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 68 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 71 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d [all …]
|
H A D | pow.phpt | 159 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 162 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 188 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 191 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 224 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 227 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 253 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d 256 Deprecated: Power of base 0 and negative exponent is deprecated in %s on line %d
|
/PHP-8.4/ext/bcmath/tests/number/methods/ |
H A D | pow_with_scale.phpt | 26 foreach ($exponents as [$exponent, $type]) { 27 $func_ret = bcpow($value, (string) $exponent, $scale); 28 $method_ret = $num->pow($exponent, $scale); 31 var_dump($value, $exponent, $scale, $func_ret, $method_ret);
|
H A D | powmod_with_scale.phpt | 30 foreach ($exponents as [$exponent, $type_ex]) { 32 $func_ret = bcpowmod($value, (string) $exponent, (string) $mod, $scale); 33 $method_ret = $num->powmod($exponent, $mod, $scale); 36 var_dump($value, $exponent, $mod, $scale, $func_ret, $method_ret);
|
H A D | pow_div_by_zero.phpt | 19 foreach ($exponents as [$exponent, $type]) { 20 echo "{$value} ** {$exponent}: {$type}\n"; 22 $num->pow($exponent);
|
H A D | pow.phpt | 23 foreach ($exponents as [$exponent, $type]) { 24 echo "{$value} ** {$exponent}: {$type}\n"; 25 $ret = $num->pow($exponent);
|
H A D | powmod_arg_error.phpt | 42 BcMath\Number::powmod(): Argument #1 ($exponent) is not well-formed 44 BcMath\Number::powmod(): Argument #1 ($exponent) must be of type int, string, or BcMath\Number, arr… 46 BcMath\Number::powmod(): Argument #1 ($exponent) must be of type int, string, or BcMath\Number, std… 52 Deprecated: BcMath\Number::powmod(): Passing null to parameter #1 ($exponent) of type BcMath\Number…
|
/PHP-8.4/ext/bcmath/tests/number/operators/ |
H A D | pow_div_by_zero.phpt | 19 foreach ($exponents as [$exponent, $type]) { 20 echo "{$value} ** {$exponent}: {$type}\n"; 22 $num ** $exponent;
|
H A D | pow_int.phpt | 25 foreach ($exponents as $exponent) { 26 echo "{$value} ** {$exponent}\n"; 27 $ret = $num1 ** ((int) $exponent); 28 $ret2 = ((int) $value) ** (new BcMath\Number($exponent));
|
H A D | pow_string.phpt | 27 foreach ($exponents as $exponent) { 28 echo "{$value} ** {$exponent}\n"; 29 $ret = $num1 ** ((string) $exponent); 30 $ret2 = ((string) $value) ** (new BcMath\Number($exponent));
|
H A D | pow_object.phpt | 27 foreach ($exponents as $exponent) { 28 echo "{$value} ** {$exponent}\n"; 29 $num2 = new BcMath\Number($exponent);
|
/PHP-8.4/ext/standard/ |
H A D | math.c | 62 ? fabs((integral) / exponent) in php_round_get_zero_edge_case() 63 : fabs((integral) * exponent); in php_round_get_zero_edge_case() 176 exponent = php_intpow10(abs(places)); in _php_math_round() 198 tmp_value = floor(places > 0 ? value * exponent : value / exponent); in _php_math_round() 201 tmp_value = ceil(places > 0 ? value * exponent : value / exponent); in _php_math_round() 205 if ((places > 0 ? tmp_value2 / exponent : tmp_value2 * exponent) == value) { in _php_math_round() 220 tmp_value = tmp_value / exponent; in _php_math_round() 222 tmp_value = tmp_value * exponent; in _php_math_round() 1429 double base, exponent; in PHP_FUNCTION() local 1433 Z_PARAM_DOUBLE(exponent) in PHP_FUNCTION() [all …]
|
/PHP-8.4/ext/dom/lexbor/lexbor/core/ |
H A D | conv.c | 92 int exponent, exp, insignf; in lexbor_conv_data_to_double() local 101 exponent = 0; in lexbor_conv_data_to_double() 149 exponent--; in lexbor_conv_data_to_double() 189 exponent += ex_minus ? -exp : exp; in lexbor_conv_data_to_double() 195 exponent += insignf; in lexbor_conv_data_to_double() 197 num = lexbor_strtod_internal(data, pos - data, exponent); in lexbor_conv_data_to_double()
|
/PHP-8.4/ext/bcmath/tests/ |
H A D | bcpow_error2.phpt | 20 bcpow(): Argument #2 ($exponent) is too large 21 bcpow(): Argument #2 ($exponent) is too large
|
H A D | bcpow_error1.phpt | 19 bcpow(): Argument #2 ($exponent) cannot have a fractional part 20 bcpow(): Argument #2 ($exponent) cannot have a fractional part
|
H A D | bcpow_div_by_zero.phpt | 13 foreach ($exponents as $exponent) { 15 echo bcpow($baseNumber, $exponent), "\n";
|
H A D | bcpowmod_negative_exponent.phpt | 16 bcpowmod(): Argument #2 ($exponent) must be greater than or equal to 0
|
H A D | bcpow_error3.phpt | 23 bcpow(): Argument #2 ($exponent) is not well-formed
|
H A D | bug72093.phpt | 20 bcpowmod(): Argument #2 ($exponent) cannot have a fractional part
|
/PHP-8.4/ext/gmp/tests/ |
H A D | gmp_pow.phpt | 52 gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0 56 gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0 59 gmp_pow(): Argument #2 ($exponent) must be of type int, array given
|
H A D | gmp_pown.phpt | 79 gmp_powm(): Argument #2 ($exponent) must be of type GMP|string|int, array given 80 gmp_powm(): Argument #2 ($exponent) must be of type GMP|string|int, TypeError given 82 gmp_powm(): Argument #2 ($exponent) must be greater than or equal to 0
|
/PHP-8.4/ext/bcmath/ |
H A D | bcmath.stub.php | 29 function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null): string {} argument 32 function bcpow(string $num, string $exponent, ?int $scale = null): string {} argument 76 …public function powmod(Number|string|int $exponent, Number|string|int $modulus, ?int $scale = null… argument 78 public function pow(Number|string|int $exponent, ?int $scale = null): Number {} argument
|