| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_BASE_IEEE754_H_ | 5 #ifndef V8_BASE_IEEE754_H_ |
| 6 #define V8_BASE_IEEE754_H_ | 6 #define V8_BASE_IEEE754_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace base { | 9 namespace base { |
| 10 namespace ieee754 { | 10 namespace ieee754 { |
| 11 | 11 |
| 12 // Returns the natural logarithm of |x|. | 12 // Returns the natural logarithm of |x|. |
| 13 double log(double x); | 13 double log(double x); |
| 14 | 14 |
| 15 // Returns a value equivalent to |log(1+x)|, but computed in a way that is |
| 16 // accurate even if the value of |x| is near zero. |
| 17 double log1p(double x); |
| 18 |
| 15 } // namespace ieee754 | 19 } // namespace ieee754 |
| 16 } // namespace base | 20 } // namespace base |
| 17 } // namespace v8 | 21 } // namespace v8 |
| 18 | 22 |
| 19 #endif // V8_BASE_IEEE754_H_ | 23 #endif // V8_BASE_IEEE754_H_ |
| OLD | NEW |