| /PHP_TRUNK/ext/bcmath/libbcmath/src/ |
| H A D | bcmath.h | 104 _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 D | div.c | 88 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 D | divmod.c | 48 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 D | init.c | 48 _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 D | nearzero.c | 43 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 D | raise.c | 47 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 D | raisemod.c | 46 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 D | recmul.c | 54 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...] |
| H A D | sqrt.c | 45 bc_sqrt (bc_num *num, int scale TSRMLS_DC) 73 rscale = MAX (scale, (*num)->n_scale);
|
| H A D | str2num.c | 44 bc_str2num (bc_num *num, char *str, int scale TSRMLS_DC) 70 strscale = MIN(strscale, scale);
|
| /PHP_TRUNK/ext/sqlite3/libsqlite/ |
| H A D | sqlite3.c | 14170 ** 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_TRUNK/ext/gd/libgd/ |
| H A D | gd_webp.c | 140 const float scale = MAX_VP8QP - MIN_VP8QP; local 142 scale * (MAX_QUALITY - quality) / (MAX_QUALITY - MIN_QUALITY) + MIN_VP8QP;
|
| H A D | mathmake.c | 4 #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 D | testac.c | 11 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
|
| /PHP_TRUNK/ext/bcmath/ |
| H A D | bcmath.c | 42 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_TRUNK/ext/interbase/ |
| H A D | ibase_query.c | 1296 int scale, int flag TSRMLS_DC) 1338 if (scale == 0) { 1342 ISC_INT64 n = *(ISC_INT64 *) data, f = scales[-scale]; 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), "%" LL_MASK "d.%0*" LL_MASK "d", n / f, -scale, -n % f); 1349 l = slprintf(string_data, sizeof(string_data), "-0.%0*" LL_MASK "d", -scale, -n % f); 1358 if (scale == 0) { 1361 long f = (long) scales[-scale]; 1364 l = slprintf(string_data, sizeof(string_data), "%ld.%0*ld", n / f, -scale, n % f); 1366 l = slprintf(string_data, sizeof(string_data), "%ld.%0*ld", n / f, -scale, 1295 _php_ibase_var_zval(zval *val, void *data, int type, int len, int scale, int flag TSRMLS_DC) argument [all...] |
| /PHP_TRUNK/ext/oci8/ |
| H A D | oci8_interface.c | 1173 Tell the scale of a column */ 1179 RETURN_LONG(column->scale);
|
| H A D | oci8_statement.c | 561 /* 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 D | php_oci8_int.h | 248 sb1 scale; /* column scale */ member in struct:__anon10
|
| /PHP_TRUNK/ext/odbc/ |
| H A D | php_odbc.c | 1236 SQLSMALLINT sqltype, ctype, scale; local 1296 rc = SQLDescribeParam(result->stmt, (SQLUSMALLINT)i, &sqltype, &precision, &scale, &nullable); 1358 ctype, sqltype, precision, scale, 1370 ctype, sqltype, precision, scale, 2848 Get the scale of a column */
|
| /PHP_TRUNK/ext/pdo_dblib/ |
| H A D | dblib_stmt.c | 281 add_assoc_long(return_value, "scale", (int) dbtypeinfo->scale );
|
| /PHP_TRUNK/ext/pdo_odbc/ |
| H A D | odbc_stmt.c | 281 SWORD sqltype = 0, ctype = 0, scale = 0, nullable = 0; local 310 rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nullable); 318 scale = 5; 368 P->paramtype, ctype, sqltype, precision, scale,
|
| /PHP_TRUNK/ext/sybase_ct/ |
| H A D | php_sybase_ct.c | 1377 result->numerics[i] = (result->datafmt[i].scale == 0) ? 3 : 2;
|
| /PHP_TRUNK/ext/pdo_oci/ |
| H A D | oci_statement.c | 503 ub2 dtype, data_size, scale, precis; local 519 /* scale ? */ 521 (param, OCI_DTYPE_PARAM, &scale, 0, OCI_ATTR_SCALE, S->err)); 531 col->precision = scale;
|