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 arc cosine of |x|; that is the value whose cosine is |x|. |
| 13 double acos(double x); |
| 14 |
| 15 // Returns the inverse hyperbolic cosine of |x|; that is the value whose |
| 16 // hyperbolic cosine is |x|. |
| 17 double acosh(double x); |
| 18 |
| 19 // Returns the arc sine of |x|; that is the value whose sine is |x|. |
| 20 double asin(double x); |
| 21 |
| 22 // Returns the inverse hyperbolic sine of |x|; that is the value whose |
| 23 // hyperbolic sine is |x|. |
| 24 double asinh(double x); |
| 25 |
12 // Returns the principal value of the arc tangent of |x|; that is the value | 26 // Returns the principal value of the arc tangent of |x|; that is the value |
13 // whose tangent is |x|. | 27 // whose tangent is |x|. |
14 double atan(double x); | 28 double atan(double x); |
15 | 29 |
16 // Returns the principal value of the arc tangent of |y/x|, using the signs of | 30 // Returns the principal value of the arc tangent of |y/x|, using the signs of |
17 // the two arguments to determine the quadrant of the result. | 31 // the two arguments to determine the quadrant of the result. |
18 double atan2(double y, double x); | 32 double atan2(double y, double x); |
19 | 33 |
20 // Returns the cosine of |x|, where |x| is given in radians. | 34 // Returns the cosine of |x|, where |x| is given in radians. |
21 double cos(double x); | 35 double cos(double x); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 double sinh(double x); | 71 double sinh(double x); |
58 | 72 |
59 // Returns the hyperbolic tangent of |x|, where |x| is given radians. | 73 // Returns the hyperbolic tangent of |x|, where |x| is given radians. |
60 double tanh(double x); | 74 double tanh(double x); |
61 | 75 |
62 } // namespace ieee754 | 76 } // namespace ieee754 |
63 } // namespace base | 77 } // namespace base |
64 } // namespace v8 | 78 } // namespace v8 |
65 | 79 |
66 #endif // V8_BASE_IEEE754_H_ | 80 #endif // V8_BASE_IEEE754_H_ |
OLD | NEW |