Chromium Code Reviews| Index: src/arm64/simulator-arm64.cc |
| diff --git a/src/arm64/simulator-arm64.cc b/src/arm64/simulator-arm64.cc |
| index bc524af72cb2db9d9e70adaf0edef6bba365faeb..79a061c0fc23de138952b152115d6ddd337ac94a 100644 |
| --- a/src/arm64/simulator-arm64.cc |
| +++ b/src/arm64/simulator-arm64.cc |
| @@ -2505,7 +2505,8 @@ static T FPRound(int64_t sign, int64_t exponent, uint64_t mantissa, |
| USE(round_mode); |
| // Rounding can promote subnormals to normals, and normals to infinities. For |
| - // example, a double with exponent 127 (FLT_MAX_EXP) would appear to be |
| + // example, a double with exponent 127 (std::numeric_limits<float>::max()_EXP) |
|
Sven Panne
2014/12/19 06:50:16
:-)
|
| + // would appear to be |
| // encodable as a float, but rounding based on the low-order mantissa bits |
| // could make it overflow. With ties-to-even rounding, this value would become |
| // an infinity. |