Home
last modified time | relevance | path

Searched refs:scale (Results 1 - 25 of 34) sorted by relevance

12

/php-7.4/ext/bcmath/
H A Dbcmath.c(last modified 15/05/2019 08:00)40 ZEND_ARG_INFO(0, scale)
46 ZEND_ARG_INFO(0, scale)
52 ZEND_ARG_INFO(0, scale)
58 ZEND_ARG_INFO(0, scale)
64 ZEND_ARG_INFO(0, scale)
71 ZEND_ARG_INFO(0, scale)
77 ZEND_ARG_INFO(0, scale)
82 ZEND_ARG_INFO(0, scale)
88 ZEND_ARG_INFO(0, scale)
92 ZEND_ARG_INFO(0, scale)
220 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
255 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
290 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
325 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
367 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
408 zend_long scale = BCG(bc_precision); PHP_FUNCTION() local
450 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
485 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
518 int scale = (int)BCG(bc_precision); PHP_FUNCTION() local
[all...]
/php-7.4/ext/bcmath/libbcmath/src/
H A Draisemod.c(last modified 24/06/2019 08:00)41 /* Truncate a number to zero scale. To avoid sharing issues (refcount and
63 bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale) in bc_raisemod() argument
79 /* Check the base for scale digits. */ in bc_raisemod()
82 php_error_docref (NULL, E_WARNING, "non-zero scale in base"); in bc_raisemod()
86 /* Check the exponent for scale digits. */ in bc_raisemod()
89 php_error_docref (NULL, E_WARNING, "non-zero scale in exponent"); in bc_raisemod()
93 /* Check the modulus for scale digits. */ in bc_raisemod()
96 php_error_docref (NULL, E_WARNING, "non-zero scale in modulus"); in bc_raisemod()
101 rscale = MAX(scale, power->n_scale); in bc_raisemod()
105 temp = bc_new_num (1, scale); in bc_raisemod()
[all...]
H A Dbcmath.h(last modified 15/05/2019 08:00)103 _PROTOTYPE(bc_num _bc_new_num_ex, (int length, int scale, int persistent));
111 _PROTOTYPE(int bc_str2num, (bc_num *num, char *str, int scale));
113 _PROTOTYPE(zend_string *bc_num2str_ex, (bc_num num, int scale));
123 _PROTOTYPE(char bc_is_near_zero, (bc_num num, int scale));
131 _PROTOTYPE(void bc_multiply, (bc_num n1, bc_num n2, bc_num *prod, int scale));
133 _PROTOTYPE(int bc_divide, (bc_num n1, bc_num n2, bc_num *quot, int scale));
136 int scale));
139 bc_num *rem, int scale));
142 bc_num *result, int scale));
145 int scale));
[all...]
H A Ddiv.c(last modified 07/05/2019 08:00)87 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument
107 qval = bc_new_num (n1->n_len, scale); in bc_divide()
109 memset (&qval->n_value[n1->n_len],0,scale); in bc_divide()
111 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide()
117 /* Set up the divide. Move the decimal point on n1 by n2's scale. in bc_divide()
125 if (scale1 < scale) in bc_divide()
126 extra = scale - scale1; in bc_divide()
145 if (len2 > len1+scale) in bc_divide()
147 qdigits = scale+1; in bc_divide()
154 qdigits = scale in bc_divide()
[all...]
H A Drecmul.c(last modified 07/05/2019 08:00)54 new_sub_num (length, scale, value) in new_sub_num()
55 int length, scale; in new_sub_num()
64 temp->n_scale = scale;
264 /* The multiply routine. N2 times N1 is put int PROD with the scale of
265 the result being MIN(N2 scale+N1 scale, MAX (SCALE, N2 scale, N1 scale)).
269 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale) in bc_multiply() argument
279 prod_scale = MIN(full_scale,MAX(scale,MA in bc_multiply()
[all...]
H A Dnum2str.c(last modified 07/05/2019 08:00)43 *bc_num2str_ex (num, scale) in bc_num2str_ex()
45 int scale;
54 if (scale > 0)
55 str = zend_string_alloc(num->n_len + scale + signch + 1, 0);
70 if (scale > 0)
73 for (index=0; index<scale && index<num->n_scale; index++)
75 for (index = num->n_scale; index<scale; index++)
H A Dinit.c(last modified 07/05/2019 08:00)43 _bc_new_num_ex (length, scale, persistent) in _bc_new_num_ex()
44 int length, scale, persistent; in _bc_new_num_ex()
48 if ((size_t)length+(size_t)scale > INT_MAX) {
52 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
55 temp->n_scale = scale;
58 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
60 memset (temp->n_ptr, 0, length+scale);
H A Dnearzero.c(last modified 07/05/2019 08:00)42 Last digit is defined by scale. */
45 bc_is_near_zero (num, scale) in bc_is_near_zero()
47 int scale;
53 if (scale > num->n_scale)
54 scale = num->n_scale;
57 count = num->n_len + scale;
H A Ddivmod.c(last modified 07/05/2019 08:00)47 bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale) in bc_divmod() argument
56 /* Calculate final scale. */ in bc_divmod()
57 rscale = MAX (num1->n_scale, num2->n_scale+scale); in bc_divmod()
82 bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_modulo() argument
84 return bc_divmod (num1, num2, NULL, result, scale); in bc_modulo()
H A Draise.c(last modified 07/05/2019 08:00)46 bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_raise() argument
55 /* Check the exponent for scale digits and convert to a long. */ in bc_raise()
57 php_error_docref (NULL, E_WARNING, "non-zero scale in exponent"); in bc_raise()
75 rscale = scale; in bc_raise()
80 rscale = MIN (num1->n_scale*exponent, MAX(scale, num1->n_scale)); in bc_raise()
H A Ddoaddsub.c(last modified 07/05/2019 08:00)43 SCALE_MIN is to set the minimum scale of the result. */
134 assumed to be larger than N2. SCALE_MIN is the minimum scale
174 /* n1 has the longer scale */
180 /* n2 has the longer scale */
195 /* Now do the equal length scale and integer parts. */
H A Dadd.c(last modified 07/05/2019 08:00)43 is the minimum scale for the result. */
71 /* They are equal! return zero with the correct scale! */
H A Dstr2num.c(last modified 17/12/2019 08:00)43 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument
69 strscale = MIN(strscale, scale); in bc_str2num()
H A Dsqrt.c(last modified 07/05/2019 08:00)44 bc_sqrt (bc_num *num, int scale) in bc_sqrt() argument
72 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt()
H A Dsub.c(last modified 07/05/2019 08:00)43 is the minimum scale for the result. */
/php-7.4/ext/gd/libgd/
H A Dtestac.c(last modified 13/02/2019 23:05)11 double scale,
73 double scale, in testDrawing()
81 im_out = gdImageCreateTrueColor ((int) (gdImageSX (im_in) * scale), in testDrawing()
82 (int) (gdImageSY (im_in) * scale)); in testDrawing()
95 gdImageFill (im_out, (int) (gdImageSX (im_in) * scale / 2), in testDrawing()
96 (int) (gdImageSY (im_in) * scale / 2), in testDrawing()
107 (int) (gdImageSX (im_in) * scale), (int) (gdImageSY (im_in) * scale), in testDrawing()
71 testDrawing( gdImagePtr im_in, double scale, int blending, int palette, char *filename) testDrawing() argument
H A Dgd_topal.c(last modified 13/02/2019 23:05)161 * B. To do everything in integer math, we must use integer scale factors.
162 * The 2/3/1 scale factors used here correspond loosely to the relative
165 * probably need to change these scale factors.
168 #define R_SCALE 2 /* scale R distances by this much */
169 #define G_SCALE 3 /* scale G distances by this much */
519 * after which, we scale according to the selected distance scale factors. in update_box()
H A Dgd_matrix.c(last modified 07/01/2020 08:00)168 * scale_x - X scale factor
169 * scale_y - Y scale factor
/php-7.4/Zend/
H A Dzend_strtod.c(last modified 24/01/2020 08:00)497 BCinfo { int dp0, dp1, dplen, dsign, e0, inexact, nd, nd0, rounding, scale, uflchk; }; member
2316 if (!bc->scale || (i = 2*P + 1 - ((word0(x) & Exp_mask) >> Exp_shift)) <= 0)
2368 p2 -= bc->scale;
2380 word0(rv) = (1 + bc->scale) << Exp_shift;
2510 if ((j = ((word0(rv) & Exp_mask) >> Exp_shift) - bc->scale) <= 0) {
2864 bc.scale = 0;
2953 bc.scale = 2*P;
2957 if (bc.scale && (j = 2*P + 1 - ((word0(&rv) & Exp_mask)
3063 j = bbe - bc.scale;
3095 bd2 += bc.scale;
[all...]
/php-7.4/ext/pdo_oci/
H A Doci_statement.c(last modified 23/07/2019 08:00)799 sb1 scale; in oci_stmt_col_meta() local
824 /* column scale */ in oci_stmt_col_meta()
826 (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err)); in oci_stmt_col_meta()
874 /* if the precision is nonzero and scale is -127 then it is a FLOAT */ in oci_stmt_col_meta()
875 if (scale == -127 && precis != 0) { in oci_stmt_col_meta()
979 add_assoc_long(return_value, "scale", scale); in oci_stmt_col_meta()
/php-7.4/ext/pdo_odbc/
H A Dodbc_stmt.c(last modified 18/02/2020 08:00)286 SWORD sqltype = 0, ctype = 0, scale = 0, nullable = 0; in odbc_stmt_param_hook() local
322 rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nullable); in odbc_stmt_param_hook()
330 scale = 5; in odbc_stmt_param_hook()
380 P->paramtype, ctype, sqltype, precision, scale, in odbc_stmt_param_hook()
/php-7.4/win32/build/
H A Dconfutils.js(last modified 20/11/2020 08:00)3322 var scale = new Array("sse", "sse2", "sse3", "ssse3", "sse4.1", "sse4.2", "avx", "avx2");
3346 for (var k = 0; k < scale.length; k++) {
3349 if (scale[k] == it) {
3360 if ("sse" == scale[j]) {
3364 configure_subst.Add("PHP_SIMD_SCALE", scale[j].toUpperCase());
3368 if ("avx2" == scale[j]) {
3371 } else if ("avx" == scale[j]) {
3376 var it = scale[i];
/php-7.4/ext/pdo_dblib/
H A Ddblib_stmt.c(last modified 13/02/2019 23:05)533 add_assoc_long(return_value, "scale", (int) dbtypeinfo->scale ); in pdo_dblib_stmt_get_column_meta()
/php-7.4/ext/oci8/
H A Dphp_oci8_int.h(last modified 13/02/2019 23:05)289 sb1 scale; /* column scale */ member
/php-7.4/ext/odbc/
H A Dphp_odbc_includes.h(last modified 13/02/2019 23:05)203 SQLSMALLINT scale; member

Completed in 95 milliseconds

12