| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_DOUBLE_H_ | 5 #ifndef V8_DOUBLE_H_ |
| 6 #define V8_DOUBLE_H_ | 6 #define V8_DOUBLE_H_ |
| 7 | 7 |
| 8 #include "src/diy-fp.h" | 8 #include "src/diy-fp.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { | 197 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { |
| 198 biased_exponent = 0; | 198 biased_exponent = 0; |
| 199 } else { | 199 } else { |
| 200 biased_exponent = static_cast<uint64_t>(exponent + kExponentBias); | 200 biased_exponent = static_cast<uint64_t>(exponent + kExponentBias); |
| 201 } | 201 } |
| 202 return (significand & kSignificandMask) | | 202 return (significand & kSignificandMask) | |
| 203 (biased_exponent << kPhysicalSignificandSize); | 203 (biased_exponent << kPhysicalSignificandSize); |
| 204 } | 204 } |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 } } // namespace v8::internal | 207 } // namespace internal |
| 208 } // namespace v8 |
| 208 | 209 |
| 209 #endif // V8_DOUBLE_H_ | 210 #endif // V8_DOUBLE_H_ |
| OLD | NEW |