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_DIY_FP_H_ | 5 #ifndef V8_DIY_FP_H_ |
6 #define V8_DIY_FP_H_ | 6 #define V8_DIY_FP_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void set_f(uint64_t new_value) { f_ = new_value; } | 86 void set_f(uint64_t new_value) { f_ = new_value; } |
87 void set_e(int new_value) { e_ = new_value; } | 87 void set_e(int new_value) { e_ = new_value; } |
88 | 88 |
89 private: | 89 private: |
90 static const uint64_t kUint64MSB = static_cast<uint64_t>(1) << 63; | 90 static const uint64_t kUint64MSB = static_cast<uint64_t>(1) << 63; |
91 | 91 |
92 uint64_t f_; | 92 uint64_t f_; |
93 int e_; | 93 int e_; |
94 }; | 94 }; |
95 | 95 |
96 } } // namespace v8::internal | 96 } // namespace internal |
| 97 } // namespace v8 |
97 | 98 |
98 #endif // V8_DIY_FP_H_ | 99 #endif // V8_DIY_FP_H_ |
OLD | NEW |