Home
last modified time | relevance | path

Searched refs:scale (Results 26 – 50 of 75) sorted by relevance

123

/php-src/ext/bcmath/tests/
H A Dbcscale_variation003.phpt6 bcmath.scale=0
9 var_dump((int) ini_get('bcmath.scale'));
11 var_dump((int) ini_get('bcmath.scale'));
13 var_dump((int) ini_get('bcmath.scale'));
15 var_dump((int) ini_get('bcmath.scale'));
H A Drun_bcmath_tests_function.inc12 foreach ($scales as $scale) {
14 echo "Number \"$firstTerm\" (scale $scale)\n";
20 $bcmath_function($firstTerm, $secondTerm, $scale),
H A Dbcsqrt.phpt6 bcmath.scale=0
25 foreach ($scales as $scale) {
27 echo bcsqrt($radicant, $scale), "\n";
H A Dbcscale_variation001.phpt6 bcmath.scale=0
18 bcscale(): Argument #1 ($scale) must be between 0 and 2147483647
H A Dscale_ini.phpt2 BCMath functions return result with default scale
6 bcmath.scale = 5
H A Dbug72093.phpt2 Bug 72093: bcpowmod fails on negative scale and corrupts _one_ definition
19 bcpowmod(): Argument #4 ($scale) must be between 0 and 2147483647
H A Dbcscale_variation002.phpt6 bcmath.scale=-2
H A Dbug66364.phpt2 Bug #66364 (BCMath bcmul ignores scale parameter)
H A Dbug44995.phpt2 Bug #44995 (bcpowmod() fails if scale != 0)
H A Dbccomp_variation001.phpt6 bcmath.scale=0
H A Dbcscale.phpt6 bcmath.scale=0
H A Dbccomp.phpt6 bcmath.scale=0
H A Dbcpowmod.phpt6 bcmath.scale=0
H A Dbccomp_variation002.phpt6 bcmath.scale=0
/php-src/ext/bcmath/libbcmath/src/
H A Dnearzero.c40 bool bc_is_near_zero(bc_num num, size_t scale) in bc_is_near_zero() argument
43 if (scale > num->n_scale) { in bc_is_near_zero()
44 scale = num->n_scale; in bc_is_near_zero()
48 size_t count = num->n_len + scale; in bc_is_near_zero()
H A Draisemod.c36 raise_mod_status bc_raisemod(bc_num base, bc_num expo, bc_num mod, bc_num *result, size_t scale) in bc_raisemod() argument
70 temp = bc_new_num (1, scale); in bc_raisemod()
75 bc_multiply_ex(temp, power, &temp, scale); in bc_raisemod()
76 (void) bc_modulo(temp, modulus, &temp, scale); in bc_raisemod()
78 bc_multiply_ex(power, power, &power, scale); in bc_raisemod()
79 (void) bc_modulo(power, modulus, &power, scale); in bc_raisemod()
H A Ddiv.c79 bool bc_divide(bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument
98 qval = bc_new_num (n1->n_len, scale); in bc_divide()
100 memcpy(qval->n_value, n1->n_value, n1->n_len + MIN(n1->n_scale, scale)); in bc_divide()
116 extra = MAX(scale - scale1, 0); in bc_divide()
133 if (len2 > len1 + scale) { in bc_divide()
134 qdigits = scale + 1; in bc_divide()
140 qdigits = scale + 1; in bc_divide()
142 qdigits = len1 - len2 + scale + 1; in bc_divide()
147 qval = bc_new_num (qdigits - scale, scale); in bc_divide()
170 while (qdig <= len1 + scale - len2) { in bc_divide()
H A Ddivmod.c44 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()
80 bool bc_modulo(bc_num num1, bc_num num2, bc_num *result, size_t scale) in bc_modulo() argument
82 return bc_divmod(num1, num2, NULL, result, scale); in bc_modulo()
H A Draise.c42 void bc_raise(bc_num num1, long exponent, bc_num *result, size_t scale) in bc_raise() argument
61 rscale = scale; in bc_raise()
64 rscale = MIN (num1->n_scale * exponent, MAX(scale, num1->n_scale)); in bc_raise()
105 void bc_raise_bc_exponent(bc_num base, bc_num expo, bc_num *result, size_t scale) in bc_raise_bc_exponent() argument
117 bc_raise(base, exponent, result, scale); in bc_raise_bc_exponent()
H A Dstr2num.c79 bool bc_str2num(bc_num *num, const char *str, const char *end, size_t scale, bool auto_scale) in bc_str2num() argument
140 if (str_scale > scale && !auto_scale) { in bc_str2num()
141 fractional_end -= str_scale - scale; in bc_str2num()
142 str_scale = scale; in bc_str2num()
H A Dzero.c38 bool bc_is_zero_for_scale(bc_num num, size_t scale) in bc_is_zero_for_scale() argument
49 count = num->n_len + scale; in bc_is_zero_for_scale()
H A Dsqrt.c39 bool bc_sqrt(bc_num *num, size_t scale) in bc_sqrt() argument
64 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt()
/php-src/ext/bcmath/
H A Dbcmath_arginfo.h7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
22 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
28 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
33 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
39 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
43 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
/php-src/ext/gd/tests/
H A Dbug67248.phpt20 …or] imageaffinematrixget(): Argument #1 ($type) must be of type array when using translate or scale
21 …or] imageaffinematrixget(): Argument #1 ($type) must be of type array when using translate or scale
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddasm_arm64.lua325 local m = sar(n, scale)
326 if shl(m, scale) == n then
410 local function parse_imm_load(imm, scale)
413 local m = sar(n, scale)
414 if shl(m, scale) == n and m >= 0 and m < 0x1000 then
421 waction("IMML", scale, imm)
480 local scale = shr(op, 30)
489 waction("IMML", scale, format(tp.ctypefmt, tailr))
509 op = op + parse_imm_load(imm, scale)
521 elseif p3s == "#"..scale then
[all …]

Completed in 54 milliseconds

123