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

/PHP_5_4/ext/bcmath/libbcmath/src/
H A Dbcmath.h104 _PROTOTYPE(bc_num _bc_new_num_ex, (int length, int scale, int persistent));
112 _PROTOTYPE(void bc_str2num, (bc_num *num, char *str, int scale TSRMLS_DC));
124 _PROTOTYPE(char bc_is_near_zero, (bc_num num, int scale));
132 _PROTOTYPE(void bc_multiply, (bc_num n1, bc_num n2, bc_num *prod, int scale TSRMLS_DC));
134 _PROTOTYPE(int bc_divide, (bc_num n1, bc_num n2, bc_num *quot, int scale TSRMLS_DC));
137 int scale TSRMLS_DC));
140 bc_num *rem, int scale TSRMLS_DC));
143 bc_num *result, int scale TSRMLS_DC));
146 int scale TSRMLS_DC));
148 _PROTOTYPE(int bc_sqrt, (bc_num *num, int scale TSRMLS_D
[all...]
H A Ddiv.c88 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale TSRMLS_DC)
108 qval = bc_new_num (n1->n_len, scale);
110 memset (&qval->n_value[n1->n_len],0,scale);
112 n1->n_len + MIN(n1->n_scale,scale));
118 /* Set up the divide. Move the decimal point on n1 by n2's scale.
126 if (scale1 < scale)
127 extra = scale - scale1;
148 if (len2 > len1+scale)
150 qdigits = scale+1;
157 qdigits = scale
[all...]
H A Ddivmod.c48 bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale TSRMLS_DC)
57 /* Calculate final scale. */
58 rscale = MAX (num1->n_scale, num2->n_scale+scale);
62 bc_divide (num1, num2, &temp, scale TSRMLS_CC);
83 bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale TSRMLS_DC)
85 return bc_divmod (num1, num2, NULL, result, scale TSRMLS_CC);
H A Dinit.c48 _bc_new_num_ex (length, scale, persistent)
49 int length, scale, persistent;
54 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
66 temp->n_scale = scale;
69 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
72 memset (temp->n_ptr, 0, length+scale);
H A Dnearzero.c43 Last digit is defined by scale. */
46 bc_is_near_zero (num, scale)
48 int scale;
54 if (scale > num->n_scale)
55 scale = num->n_scale;
58 count = num->n_len + scale;
H A Draise.c47 bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale TSRMLS_DC)
56 /* Check the exponent for scale digits and convert to a long. */
58 bc_rt_warn ("non-zero scale in exponent");
76 rscale = scale;
81 rscale = MIN (num1->n_scale*exponent, MAX(scale, num1->n_scale));
H A Draisemod.c46 bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale TSRMLS_DC)
61 /* Check the base for scale digits. */
63 bc_rt_warn ("non-zero scale in base");
65 /* Check the exponent for scale digits. */
68 bc_rt_warn ("non-zero scale in exponent");
72 /* Check the modulus for scale digits. */
74 bc_rt_warn ("non-zero scale in modulus");
77 rscale = MAX(scale, base->n_scale);
84 (void) bc_modulo (temp, mod, &temp, scale TSRMLS_CC);
88 (void) bc_modulo (power, mod, &power, scale TSRMLS_C
[all...]
H A Dsqrt.c45 bc_sqrt (bc_num *num, int scale TSRMLS_DC)
73 rscale = MAX (scale, (*num)->n_scale);
H A Dstr2num.c44 bc_str2num (bc_num *num, char *str, int scale TSRMLS_DC)
70 strscale = MIN(strscale, scale);
H A Drecmul.c54 new_sub_num (length, scale, value)
55 int length, scale;
73 temp->n_scale = scale;
276 /* The multiply routine. N2 times N1 is put int PROD with the scale of
277 the result being MIN(N2 scale+N1 scale, MAX (SCALE, N2 scale, N1 scale)).
281 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale TSRMLS_DC)
291 prod_scale = MIN(full_scale,MAX(scale,MA
[all...]
/PHP_5_4/ext/gd/libgd/
H A Dmathmake.c4 #define scale 1024 macro
12 printf ("#define costScale %d\n", scale);
16 basis[i] = cos ((double) i * .0174532925) * scale;
36 printf ("#define sintScale %d\n", scale);
H A Dtestac.c11 double scale,
73 double scale,
81 im_out = gdImageCreateTrueColor ((int) (gdImageSX (im_in) * scale),
82 (int) (gdImageSY (im_in) * scale));
95 gdImageFill (im_out, (int) (gdImageSX (im_in) * scale / 2),
96 (int) (gdImageSY (im_in) * scale / 2),
107 (int) (gdImageSX (im_in) * scale), (int) (gdImageSY (im_in) * scale),
71 testDrawing( gdImagePtr im_in, double scale, int blending, int palette, char *filename) argument
H A Dgd_webp.c140 const float scale = MAX_VP8QP - MIN_VP8QP; local
142 scale * (MAX_QUALITY - quality) / (MAX_QUALITY - MIN_QUALITY) + MIN_VP8QP;
/PHP_5_4/ext/sqlite3/libsqlite/
H A Dsqlite3.c14170 ** If the library is compiled to omit the full-scale date and time
20896 /* if exponent, scale significand as appropriate
20899 double scale = 1.0; local
20902 while( e%308 ) { scale *= 1.0e+1; e -= 1; }
20904 result = s / scale;
20907 result = s * scale;
20913 while( e%22 ) { scale *= 1.0e+1; e -= 1; }
20914 while( e>0 ) { scale *= 1.0e+22; e -= 22; }
20916 result = s / scale;
20918 result = s * scale;
[all...]
/PHP_5_4/ext/pdo_dblib/
H A Ddblib_stmt.c308 add_assoc_long(return_value, "scale", (int) dbtypeinfo->scale );
/PHP_5_4/ext/pdo_oci/
H A Doci_statement.c509 ub2 dtype, data_size, scale, precis; local
525 /* scale ? */
527 (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err));
537 col->precision = scale;
/PHP_5_4/ext/pdo_odbc/
H A Dodbc_stmt.c281 SWORD sqltype = 0, ctype = 0, scale = 0, nullable = 0; local
316 rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nullable);
324 scale = 5;
374 P->paramtype, ctype, sqltype, precision, scale,
/PHP_5_4/ext/sybase_ct/
H A Dphp_sybase_ct.c1377 result->numerics[i] = (result->datafmt[i].scale == 0) ? 3 : 2;
/PHP_5_4/ext/bcmath/
H A Dbcmath.c42 ZEND_ARG_INFO(0, scale)
48 ZEND_ARG_INFO(0, scale)
54 ZEND_ARG_INFO(0, scale)
60 ZEND_ARG_INFO(0, scale)
72 ZEND_ARG_INFO(0, scale)
78 ZEND_ARG_INFO(0, scale)
83 ZEND_ARG_INFO(0, scale)
89 ZEND_ARG_INFO(0, scale)
93 ZEND_ARG_INFO(0, scale)
135 STD_PHP_INI_ENTRY("bcmath.scale", "
212 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); local
251 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); local
290 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); local
329 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); local
409 long scale = BCG(bc_precision); local
453 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); local
492 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); local
529 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); local
[all...]
/PHP_5_4/ext/oci8/
H A Doci8_interface.c1173 Tell the scale of a column */
1179 RETURN_LONG(column->scale);
H A Doci8_statement.c561 /* get scale of the column */
562 PHP_OCI_CALL_RETURN(statement->errcode, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->scale, (dvoid *)0, OCI_ATTR_SCALE, statement->err));
H A Dphp_oci8_int.h248 sb1 scale; /* column scale */ member in struct:__anon10
/PHP_5_4/ext/interbase/
H A Dibase_query.c1294 int scale, int flag TSRMLS_DC)
1336 if (scale == 0) {
1340 ISC_INT64 n = *(ISC_INT64 *) data, f = scales[-scale];
1343 l = slprintf(string_data, sizeof(string_data), "%" LL_MASK "d.%0*" LL_MASK "d", n / f, -scale, n % f);
1345 l = slprintf(string_data, sizeof(string_data), "%" LL_MASK "d.%0*" LL_MASK "d", n / f, -scale, -n % f);
1347 l = slprintf(string_data, sizeof(string_data), "-0.%0*" LL_MASK "d", -scale, -n % f);
1356 if (scale == 0) {
1359 long f = (long) scales[-scale];
1362 l = slprintf(string_data, sizeof(string_data), "%ld.%0*ld", n / f, -scale, n % f);
1364 l = slprintf(string_data, sizeof(string_data), "%ld.%0*ld", n / f, -scale,
1293 _php_ibase_var_zval(zval *val, void *data, int type, int len, int scale, int flag TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/odbc/
H A Dphp_odbc.c1258 SQLSMALLINT sqltype, ctype, scale; local
1318 rc = SQLDescribeParam(result->stmt, (SQLUSMALLINT)i, &sqltype, &precision, &scale, &nullable);
1380 ctype, sqltype, precision, scale,
1392 ctype, sqltype, precision, scale,
2887 Get the scale of a column */

Completed in 169 milliseconds