Home
last modified time | relevance | path

Searched refs:pow (Results 1 – 25 of 49) sorted by last modified time

12

/php-src/Zend/
H A Dzend_operators.c1314 ZVAL_DOUBLE(result, dval * pow(l2, i)); in pow_function_base()
1321 ZVAL_DOUBLE(result, (double)l1 * pow(dval, i)); in pow_function_base()
1329 ZVAL_DOUBLE(result, pow((double)Z_LVAL_P(op1), (double)Z_LVAL_P(op2))); in pow_function_base()
1333 ZVAL_DOUBLE(result, pow(Z_DVAL_P(op1), Z_DVAL_P(op2))); in pow_function_base()
1336 ZVAL_DOUBLE(result, pow((double)Z_LVAL_P(op1), Z_DVAL_P(op2))); in pow_function_base()
1339 ZVAL_DOUBLE(result, pow(Z_DVAL_P(op1), (double)Z_LVAL_P(op2))); in pow_function_base()
3745 double two_pow_32 = pow(2., 32.),
3759 double two_pow_64 = pow(2., 64.),
/php-src/ext/dom/lexbor/lexbor/core/
H A Dstrtod.c165 lexbor_diyfp_t value, pow, adj_pow, rounded; in lexbor_strtod_diyfp_strtod() local
188 pow = lexbor_cached_power_dec(exp, &dec_exp); in lexbor_strtod_diyfp_strtod()
204 value = lexbor_diyfp_mul(value, pow); in lexbor_strtod_diyfp_strtod()
/php-src/ext/standard/
H A Dbasic_functions.stub.php3204 function pow(mixed $num, mixed $exponent): int|float|object {}
H A Dbasic_functions_arginfo.h2774 ZEND_FUNCTION(pow);
H A Dmath.c38 return pow(10.0, (double)power); in php_intpow10()
561 PHP_FUNCTION(pow) in PHP_FUNCTION() argument
/php-src/ext/gd/libgd/
H A Dgd_interpolation.c370 return (pow(2.0 - x, 3.0)/6.0); in filter_cubic_spline()
483 if (x < 1.5) return (0.5 * pow(x - 1.5, 2.0)); in filter_bell()
597 return (1.0f - (double)fabs(pow(x,a))); in filter_power()
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_bit.phpt23 $maxval = pow(2, $bits);
44 $max_value = pow(2, $bits) - 1;
H A Dmysqli_stmt_fetch_bit.phpt26 $max_value = pow(2, $bits) - 1;
H A Dmysqli_stmt_bind_result_bit.phpt15 $maxval = pow(2, $bits);
41 $max_value = pow(2, $bits) - 1;
H A Dmysqli_insert_packet_overflow.phpt12 $max_len = pow(2, 24);
40 $max_len = pow(2, 24);
70 $max_len = pow(2, 24);
H A Dmysqli_fetch_assoc_bit.phpt20 $maxval = pow(2, $bits);
41 $max_value = pow(2, $bits) - 1;
H A Dmysqli_fetch_array_large.phpt126 … $limit = (ini_get('memory_limit') > 0) ? parse_memory_limit(ini_get('memory_limit')) : pow(2, 32);
/php-src/ext/opcache/tests/jit/
H A Dbug81225.phpt2 Bug #81225: Wrong result with pow operator with JIT enabled
H A Dbug81225_2.phpt2 Bug #81225: Wrong result with pow operator with JIT enabled
/php-src/ext/gd/
H A Dgd.c2296 (int) ((pow((gdTrueColorGetRed(c) / 255.0), gamma) * 255) + .5), in PHP_FUNCTION()
2297 (int) ((pow((gdTrueColorGetGreen(c) / 255.0), gamma) * 255) + .5), in PHP_FUNCTION()
2298 (int) ((pow((gdTrueColorGetBlue(c) / 255.0), gamma) * 255) + .5), in PHP_FUNCTION()
2308 im->red[i] = (int)((pow((im->red[i] / 255.0), gamma) * 255) + .5); in PHP_FUNCTION()
2309 im->green[i] = (int)((pow((im->green[i] / 255.0), gamma) * 255) + .5); in PHP_FUNCTION()
2310 im->blue[i] = (int)((pow((im->blue[i] / 255.0), gamma) * 255) + .5); in PHP_FUNCTION()
/php-src/ext/gd/tests/
H A Dbug53504.phpt82 $width = sqrt(pow($bboxDrawn[2] - $bboxDrawn[0], 2) + pow($bboxDrawn[3] - $bboxDrawn[1], 2));
/php-src/ext/standard/tests/math/
H A Dpow_variation1_64bit.phpt2 Test pow() function : usage variations - different data types as $base argument
57 // loop through each element of $inputs to check the behaviour of pow()
60 var_dump(pow($input, 3));
H A Dpow_variation2.phpt2 Test pow() function : usage variations - different data types as $exp argument
53 // loop through each element of $inputs to check the behaviour of pow()
56 var_dump(pow(20.3, $input));
H A Dpow_variation1.phpt2 Test pow() function : usage variations - different data types as $base argument
58 // loop through each element of $inputs to check the behaviour of pow()
61 var_dump(pow($input, 3));
/php-src/ext/opcache/jit/ir/dynasm/
H A Dminilua.c152 #define luai_numpow(a,b)(pow(a,b))
/php-src/ext/date/lib/
H A Dparse_date.re539 tmp_nr = strtod(str, NULL) * pow(10, 7 - (end - begin));
1251 us = us * pow(10, 7 - (ptr - ptr_before));
2437 s->time->us = (f * pow(10, 6 - (ptr - tptr)));
2452 s->time->us = (f * pow(10, 3 - (ptr - tptr)) * 1000);
H A Dparse_date.c541 tmp_nr = strtod(str, NULL) * pow(10, 7 - (end - begin)); in timelib_get_frac_nr()
7794 us = us * pow(10, 7 - (ptr - ptr_before)); in scan()
25287 s->time->us = (f * pow(10, 6 - (ptr - tptr))); in timelib_parse_from_format_with_map()
25302 s->time->us = (f * pow(10, 3 - (ptr - tptr)) * 1000); in timelib_parse_from_format_with_map()
/php-src/ext/standard/tests/array/range/
H A Drange_bug70239_0.phpt6 range(0, pow(2.0, 100000000));
H A Drange_bug70239_1.phpt6 range(pow(2.0, 100000000), pow(2.0, 100000000) + 1);
/php-src/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c243 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_time()
321 (uint32_t) (t.second_part / pow(10, 6 - field->decimals)))); in ps_fetch_datetime()

Completed in 171 milliseconds

12