Index: test/cctest/compiler/value-helper.h |
diff --git a/test/cctest/compiler/value-helper.h b/test/cctest/compiler/value-helper.h |
index cbde9a741748bde94979345d87fc57b2b3796b16..d36124c02488254c3957252c6b5a677470c2be31 100644 |
--- a/test/cctest/compiler/value-helper.h |
+++ b/test/cctest/compiler/value-helper.h |
@@ -176,49 +176,36 @@ class ValueHelper { |
static std::vector<double> float64_vector() { |
static const double nan = std::numeric_limits<double>::quiet_NaN(); |
- static const double values[] = {-2e66, |
- -9223373136366403584.0, |
- -9223372036854775808.0, // INT64_MIN |
- -2147483649.5, |
- -2147483648.25, |
- -2147483648.0, |
- -2147483647.875, |
- -2147483647.125, |
- -2147483647.0, |
- -999.75, |
- -2e66, |
- -1.75, |
- -1.0, |
- -0.5, |
- -0.0, |
- 0.0, |
- 3e-88, |
- 0.125, |
- 0.25, |
- 0.375, |
- 0.5, |
- 1.0, |
- 1.25, |
- 2, |
- 3.1e7, |
- 5.125, |
- 6.25, |
- 888, |
- 982983.25, |
- 2147483647.0, |
- 2147483647.375, |
- 2147483647.75, |
- 2147483648.0, |
- 2147483648.25, |
- 2147483649.25, |
- 9223372036854775807.0, // INT64_MAX |
- 9223373136366403584.0, |
- 18446744073709551615.0, // UINT64_MAX |
- 2e66, |
- V8_INFINITY, |
- -V8_INFINITY, |
- -nan, |
- nan}; |
+ static const double values[] = { |
+ -2e66, |
+ -162259276829213363391578010288128.0, // 2^107 |
+ -81129638414606681695789005144064.0, // 2^106 |
+ -40564819207303349855093757313024.0, // 2^105 |
+ -40564819207303340847894502572032.0, -9223373136366403584.75, |
+ -9223373136366403584.5, -9223373136366403584.25, -9223373136366403584.0, |
+ -9223372036854775808.0, // INT64_MIN |
+ -4503599627370497.5, |
+ -4503599627370496.5, // -2^52 - 0.5 |
+ -4503599627370495.5, |
+ -2251799813685248.5, // 2^51 + 0.5 |
+ -34359738368.75, -34359738368.5, -34359738368.25, |
+ -4294967295.0, // -2^32 + 1.0 |
+ -2147483649.5, -2147483648.25, -2147483648.0, -2147483647.875, |
+ -2147483647.125, -2147483647.0, -999.75, -1.75, -1.0, -0.5, -0.0, 0.0, |
+ 3e-88, 0.125, 0.25, 0.375, 0.5, 1.0, 1.25, 2, 3.1e7, 5.125, 6.25, 888, |
+ 982983.25, 2147483647.0, 2147483647.375, 2147483647.75, 2147483648.0, |
+ 2147483648.25, 2147483649.25, |
+ 4294967295.0, // +2^32 + 1.0 |
+ 34359738368.75, 34359738368.5, 34359738368.25, |
+ 2251799813685248.5, // 2^51 + 0.5 |
+ 4503599627370495.5, |
+ 4503599627370496.5, // 2^52 + 0.5 |
+ 4503599627370497.5, |
+ 9223372036854775807.0, // INT64_MAX |
+ 9223373136366403584.0, |
+ 18446744073709551615.0, // UINT64_MAX |
+ // 81129638414606681695789005144064.0, |
+ 2e66, V8_INFINITY, -V8_INFINITY, -nan, nan}; |
return std::vector<double>(&values[0], &values[arraysize(values)]); |
} |