Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 25 of 44) 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()
110 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 void bc_raise(bc_num base, long exponent, bc_num *resul, 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/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.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/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/bcmath/tests/number/operators/
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/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 Dbcpowmod_negative_exponent.phpt16 bcpowmod(): Argument #2 ($exponent) must be greater than or equal to 0
H A Dbcpow_error3.phpt23 bcpow(): Argument #2 ($exponent) is not well-formed
H A Dbug72093.phpt20 bcpowmod(): Argument #2 ($exponent) cannot have a fractional part
H A Dbcpowmod_error.phpt29 bcpowmod(): Argument #2 ($exponent) is not well-formed
/php-src/ext/gmp/tests/
H A Dgmp_pow.phpt52 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 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/
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
H A Dbcmath_arginfo.h26 ZEND_ARG_TYPE_INFO(0, exponent, IS_STRING, 0)
33 ZEND_ARG_TYPE_INFO(0, exponent, IS_STRING, 0)
87 ZEND_ARG_OBJ_TYPE_MASK(0, exponent, BcMath\\\116umber, MAY_BE_STRING|MAY_BE_LONG, NULL)
93 ZEND_ARG_OBJ_TYPE_MASK(0, exponent, BcMath\\\116umber, MAY_BE_STRING|MAY_BE_LONG, NULL)
/php-src/Zend/
H A Dzend_strtod.h35 ZEND_API char *zend_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf);

Completed in 30 milliseconds

12