Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 75) sorted by relevance

123

/php-src/ext/dom/lexbor/lexbor/core/
H A Ddiyfp.h59 int exp; member
125 r.exp = LEXBOR_DBL_EXPONENT_MIN + 1; in lexbor_diyfp_from_d2()
134 int exp; in lexbor_diyfp_2d() local
143 exp = v.exp; in lexbor_diyfp_2d()
148 exp++; in lexbor_diyfp_2d()
151 if (exp >= LEXBOR_DBL_EXPONENT_MAX) { in lexbor_diyfp_2d()
155 if (exp < LEXBOR_DBL_EXPONENT_DENORMAL) { in lexbor_diyfp_2d()
163 exp--; in lexbor_diyfp_2d()
166 if (exp == LEXBOR_DBL_EXPONENT_DENORMAL in lexbor_diyfp_2d()
219 return lexbor_diyfp(h, lhs.exp + rhs.exp + 64); in lexbor_diyfp_mul()
[all …]
H A Dstrtod.c110 lexbor_strtod_adjust_pow10(int exp) in lexbor_strtod_adjust_pow10() argument
112 switch (exp) { in lexbor_strtod_adjust_pow10()
169 exp += remaining; in lexbor_strtod_diyfp_strtod()
180 orig_e = value.exp; in lexbor_strtod_diyfp_strtod()
182 error <<= orig_e - value.exp; in lexbor_strtod_diyfp_strtod()
184 if (exp < LEXBOR_DECIMAL_EXPONENT_MIN) { in lexbor_strtod_diyfp_strtod()
190 if (dec_exp != exp) { in lexbor_strtod_diyfp_strtod()
191 adj_exp = exp - dec_exp; in lexbor_strtod_diyfp_strtod()
216 orig_e = value.exp; in lexbor_strtod_diyfp_strtod()
218 error <<= orig_e - value.exp; in lexbor_strtod_diyfp_strtod()
[all …]
H A Ddtoa.c101 one = lexbor_diyfp((uint64_t) 1 << -Mp.exp, Mp.exp); in lexbor_grisu2_gen()
102 p1 = (uint32_t) (Mp.significand >> -one.exp); in lexbor_grisu2_gen()
140 tmp = ((uint64_t) p1 << -one.exp) + p2; in lexbor_grisu2_gen()
155 c = (char) (p2 >> -one.exp); in lexbor_grisu2_gen()
186 v.exp--; in lexbor_diyfp_normalize_boundary()
208 mi.significand <<= mi.exp - pl.exp; in lexbor_diyfp_normalize_boundaries()
209 mi.exp = pl.exp; in lexbor_diyfp_normalize_boundaries()
224 c_mk = lexbor_cached_power_bin(w_p.exp, dec_exp); in lexbor_grisu2()
251 if (exp < 0) { in lexbor_write_exponent()
255 exp = -exp; in lexbor_write_exponent()
[all …]
H A Ddiyfp.c120 lexbor_cached_power_dec(int exp, int *dec_exp) in lexbor_cached_power_dec() argument
125 index = (exp + LEXBOR_DECIMAL_EXPONENT_OFF) / LEXBOR_DECIMAL_EXPONENT_DIST; in lexbor_cached_power_dec()
134 lexbor_cached_power_bin(int exp, int *dec_exp) in lexbor_cached_power_bin() argument
140 k = (int) ceil((-61 - exp) * LEXBOR_DIYFP_D_1_LOG2_10) in lexbor_cached_power_bin()
H A Dconv.c92 int exponent, exp, insignf; in lexbor_conv_data_to_double() local
176 exp = c; in lexbor_conv_data_to_double()
186 exp = exp * 10 + c; in lexbor_conv_data_to_double()
189 exponent += ex_minus ? -exp : exp; in lexbor_conv_data_to_double()
/php-src/ext/gd/tests/
H A Dbug53504.phpt25 …['fontSize' => 50, 'angle' => 0, 'x' => 20, 'y' => 70, 'text' => 'AV Teg', 'exp' => [2,15, 208,15,…
26 …['fontSize' => 50, 'angle' => 90, 'x' => 70, 'y' => 350, 'text' => 'AV Teg', 'exp' => [15,-1, 15,-…
30 …['fontSize' => 100, 'angle' => 0, 'x' => 350, 'y' => 110, 'text' => 'H-Shift', 'exp' => [8,2, 386,…
33 …['fontSize' => 100, 'angle' => 0, 'x' => 350, 'y' => 220, 'text' => '-', 'exp' => [7,-37, 51,-37, …
34 …['fontSize' => 100, 'angle' => 0, 'x' => 430, 'y' => 220, 'text' => ',', 'exp' => [7,15, 21,15, 21…
35 …['fontSize' => 100, 'angle' => 0, 'x' => 510, 'y' => 220, 'text' => '.', 'exp' => [7,1, 21,1, 21,-…
36 …['fontSize' => 100, 'angle' => 0, 'x' => 590, 'y' => 220, 'text' => '|', 'exp' => [8,0, 17,0, 17,-…
37 …['fontSize' => 100, 'angle' => 0, 'x' => 670, 'y' => 220, 'text' => 'g', 'exp' => [5,29, 60,29, 60…
60 $exp = $test['exp'][$i];
61 if ($bbox[$i] >= $exp - 2 && $bbox[$i] <= $exp + 2) {
[all …]
H A Dimageresolution_jpeg.phpt13 $exp = imagecreate(100, 100);
14 imagecolorallocate($exp, 255, 0, 0);
16 imageresolution($exp, 71);
17 imagejpeg($exp, $filename);
21 imageresolution($exp, 71, 299);
22 imagejpeg($exp, $filename);
25 imageresolution($exp, 71, 299);
28 imagejpeg($exp, $filename, 101);
H A Dimageresolution_basic.phpt13 $exp = imagecreate(100, 100);
14 imagecolorallocate($exp, 255, 127, 64);
16 $res = imageresolution($exp);
19 imageresolution($exp, PHP_INT_MAX);
24 imageresolution($exp, 127, -PHP_INT_MAX);
28 imageresolution($exp, 0, 0);
29 var_dump(imageresolution($exp) == $res);
H A Dimageresolution_png.phpt15 $exp = imagecreate(100, 100);
16 imagecolorallocate($exp, 255, 0, 0);
18 imageresolution($exp, 71);
19 imagepng($exp, $filename);
23 imageresolution($exp, 71, 299);
24 imagepng($exp, $filename);
H A Dbug43073.phpt14 $exp = [
48 if ($bbox[$j] >= $exp[$i][$j] - 1 && $bbox[$j] <= $exp[$i][$j] + 1) {
51 echo "(expected $exp[$i][$j], got $bbox[$j])";
/php-src/ext/standard/tests/file/windows_acls/
H A Dbug44859.phpt24 foreach ($iteration as $perms => $exp) {
28 if (is_writable($path) == $exp) {
31 var_dump(is_writable($path), $exp);
40 foreach ($iteration as $perms => $exp) {
44 if (is_writable($path) == $exp) {
47 var_dump(is_writable($path), $exp);
H A Dbug44859_2.phpt24 foreach ($iteration as $perms => $exp) {
28 if (is_readable($path) == $exp) {
31 var_dump(is_readable($path), $exp);
40 foreach ($iteration as $perms => $exp) {
44 if (is_readable($path) == $exp) {
47 var_dump(is_readable($path), $exp);
H A Dbug44859_4.phpt26 foreach ($iteration as $perms => $exp) {
30 if (is_readable($path) == $exp) {
33 var_dump(is_readable($path), $exp);
42 foreach ($iteration as $perms => $exp) {
46 if (is_readable($path) == $exp) {
49 var_dump(is_readable($path), $exp);
H A Dbug44859_3.phpt22 foreach ($iteration as $file => $exp) {
25 if (is_executable($path) == $exp) {
28 var_dump(is_executable($path), $exp);
/php-src/ext/filter/tests/
H A D034.phpt24 foreach($booleans as $val=>$exp) {
26 if ($res !== $exp) {
27 echo "$val failed,'$exp' expect, '$res' received.\n";
H A D030.phpt52 foreach ($ipv6_test as $ip => $exp) {
55 if ($exp != $out) {
56 echo "$ip failed (expected ", $exp?"true":"false", ", got ",
/php-src/ext/standard/tests/math/
H A Dexp_basic.phpt2 Test exp() - basic function test for exp()
23 var_dump(exp($value));
/php-src/ext/fileinfo/tests/
H A Dfinfo_upstream.phpt17 $exp = trim(file_get_contents($tp));
18 if ($i !== $exp) {
19 echo "'$p' failed\nexp: '$exp'\ngot: '$i'\n";
/php-src/ext/mysqli/tests/
H A Dmysqli_real_escape_string_unicode.phpt36 if (($exp='абра\\\\ка\"да\\'."'".'бра\Zсим\\nсала\\rби\\0м') !==
39 printf("[010] Expecting %s, got %s\n", $exp, $tmp, var_dump($exp, $tmp));
60 if (($exp='阿卜拉\\\\嘉\"达丰\\'."'".'乳罩\Z辛\\n萨拉\\r毕\\0米') !==
63 printf("[017] Expecting %s, got %s\n", $exp, $tmp, var_dump($exp, $tmp));
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_local_infile_directory_allowed.phpt16 function exec_and_count($offset, &$db, $sql, $exp) {
19 if ($ret !== $exp) {
21 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql,
54 foreach ($expected as $offset => $exp) {
55 foreach ($exp as $key => $value) {
H A Dpdo_mysql_local_infile_overrides_local_infile_directory.phpt16 function exec_and_count($offset, &$db, $sql, $exp) {
19 if ($ret !== $exp) {
21 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql,
54 foreach ($expected as $offset => $exp) {
55 foreach ($exp as $key => $value) {
H A Dpdo_mysql_exec_load_data.phpt33 function exec_and_count($offset, &$db, $sql, $exp) {
36 if ($ret !== $exp) {
38 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql,
82 foreach ($expected as $offset => $exp) {
83 foreach ($exp as $key => $value) {
/php-src/ext/reflection/tests/
H A D001.phpt23 $exp = array (
62 foreach($exp as $m)
64 if (!in_array($m, $exp))
/php-src/ext/sodium/tests/
H A Dcrypto_generichash.phpt36 $exp = bin2hex($q);
37 var_dump($exp);
42 var_dump($exp === $act);
/php-src/ext/standard/tests/strings/
H A Dstrncasecmp_variation1.phpt10 … chr($ASCII), 1 ) ); //comparing uppercase letter with corresponding uppercase letter; exp: int(0)
11 …$ASCII + 32), 1 ) ); //comparing uppercase letter with corresponding lowercase letter; exp: int(0)
16 … chr($ASCII), 1 ) ); //comparing lowercase letter with corresponding lowercase letter; exp: int(0)
17 …$ASCII - 32), 1 ) ); //comparing lowercase letter with corresponding uppercase letter; exp: int(0)

Completed in 27 milliseconds

123