Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 25 of 49) sorted by relevance

12

/php-src/ext/bcmath/libbcmath/src/
H A Draise.c54 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 Draisemod.c39 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 Dbcmath.h169 raise_mod_status bc_raisemod(bc_num base, bc_num exponent, bc_num mod, bc_num *result, size_t scale…
171 bool bc_raise(bc_num base, long exponent, bc_num *result, size_t scale);
173 void bc_raise_bc_exponent(bc_num base, bc_num exponent, bc_num *resul, size_t scale);
/php-src/ext/standard/tests/math/
H A Dpow_divisionbyzero.phpt40 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 Dpow.phpt159 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-src/ext/gmp/tests/
H A Dgmp_pow_32bits.phpt68 gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0
70 base and exponent overflow
71 base and exponent overflow
72 gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0
73 base and exponent overflow
74 base and exponent overflow
75 gmp_pow(): Argument #2 ($exponent) must be of type int, array given
H A Dgmp_pow_fpe.phpt32 base and exponent overflow
33 base and exponent overflow
34 base and exponent overflow
35 base and exponent overflow
H A Dgmp_pow.phpt54 gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0
58 gmp_pow(): Argument #2 ($exponent) must be greater than or equal to 0
61 gmp_pow(): Argument #2 ($exponent) must be of type int, array given
H A Dgmp_pown.phpt79 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-src/ext/bcmath/tests/number/methods/
H A Dpow_with_scale.phpt26 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 Dpowmod_with_scale.phpt30 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 Dpow_div_by_zero.phpt19 foreach ($exponents as [$exponent, $type]) {
20 echo "{$value} ** {$exponent}: {$type}\n";
22 $num->pow($exponent);
H A Dpow.phpt23 foreach ($exponents as [$exponent, $type]) {
24 echo "{$value} ** {$exponent}: {$type}\n";
25 $ret = $num->pow($exponent);
H A Dpowmod_arg_error.phpt42 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-src/ext/bcmath/tests/number/operators/
H A Dpow_div_by_zero.phpt19 foreach ($exponents as [$exponent, $type]) {
20 echo "{$value} ** {$exponent}: {$type}\n";
22 $num ** $exponent;
H A Dpow_int.phpt25 foreach ($exponents as $exponent) {
26 echo "{$value} ** {$exponent}\n";
27 $ret = $num1 ** ((int) $exponent);
28 $ret2 = ((int) $value) ** (new BcMath\Number($exponent));
H A Dpow_string.phpt27 foreach ($exponents as $exponent) {
28 echo "{$value} ** {$exponent}\n";
29 $ret = $num1 ** ((string) $exponent);
30 $ret2 = ((string) $value) ** (new BcMath\Number($exponent));
H A Dpow_object.phpt27 foreach ($exponents as $exponent) {
28 echo "{$value} ** {$exponent}\n";
29 $num2 = new BcMath\Number($exponent);
/php-src/ext/standard/
H A Dmath.c62 ? 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-src/ext/dom/lexbor/lexbor/core/
H A Dconv.c92 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-src/ext/bcmath/tests/
H A Dbcpow_error2.phpt20 bcpow(): Argument #2 ($exponent) is too large
21 bcpow(): Argument #2 ($exponent) is too large
H A Dbcpow_error1.phpt19 bcpow(): Argument #2 ($exponent) cannot have a fractional part
20 bcpow(): Argument #2 ($exponent) cannot have a fractional part
H A Dbcpow_div_by_zero.phpt13 foreach ($exponents as $exponent) {
15 echo bcpow($baseNumber, $exponent), "\n";
H A Dbcpowmod_negative_exponent.phpt16 bcpowmod(): Argument #2 ($exponent) must be greater than or equal to 0
/php-src/ext/bcmath/
H A Dbcmath.stub.php29 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

Completed in 26 milliseconds

12