Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: src/base/ieee754.h

Issue 2399323002: Reland of land "Turn libbase into a component" (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/base/functional.h ('k') | src/base/logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "src/base/base-export.h"
9
8 namespace v8 { 10 namespace v8 {
9 namespace base { 11 namespace base {
10 namespace ieee754 { 12 namespace ieee754 {
11 13
12 // Returns the arc cosine of |x|; that is the value whose cosine is |x|. 14 // Returns the arc cosine of |x|; that is the value whose cosine is |x|.
13 double acos(double x); 15 V8_BASE_EXPORT double acos(double x);
14 16
15 // Returns the inverse hyperbolic cosine of |x|; that is the value whose 17 // Returns the inverse hyperbolic cosine of |x|; that is the value whose
16 // hyperbolic cosine is |x|. 18 // hyperbolic cosine is |x|.
17 double acosh(double x); 19 V8_BASE_EXPORT double acosh(double x);
18 20
19 // Returns the arc sine of |x|; that is the value whose sine is |x|. 21 // Returns the arc sine of |x|; that is the value whose sine is |x|.
20 double asin(double x); 22 V8_BASE_EXPORT double asin(double x);
21 23
22 // Returns the inverse hyperbolic sine of |x|; that is the value whose 24 // Returns the inverse hyperbolic sine of |x|; that is the value whose
23 // hyperbolic sine is |x|. 25 // hyperbolic sine is |x|.
24 double asinh(double x); 26 V8_BASE_EXPORT double asinh(double x);
25 27
26 // Returns the principal value of the arc tangent of |x|; that is the value 28 // Returns the principal value of the arc tangent of |x|; that is the value
27 // whose tangent is |x|. 29 // whose tangent is |x|.
28 double atan(double x); 30 V8_BASE_EXPORT double atan(double x);
29 31
30 // Returns the principal value of the arc tangent of |y/x|, using the signs of 32 // Returns the principal value of the arc tangent of |y/x|, using the signs of
31 // the two arguments to determine the quadrant of the result. 33 // the two arguments to determine the quadrant of the result.
32 double atan2(double y, double x); 34 V8_BASE_EXPORT double atan2(double y, double x);
33 35
34 // Returns the cosine of |x|, where |x| is given in radians. 36 // Returns the cosine of |x|, where |x| is given in radians.
35 double cos(double x); 37 V8_BASE_EXPORT double cos(double x);
36 38
37 // Returns the base-e exponential of |x|. 39 // Returns the base-e exponential of |x|.
38 double exp(double x); 40 V8_BASE_EXPORT double exp(double x);
39 41
40 double atanh(double x); 42 V8_BASE_EXPORT double atanh(double x);
41 43
42 // Returns the natural logarithm of |x|. 44 // Returns the natural logarithm of |x|.
43 double log(double x); 45 V8_BASE_EXPORT double log(double x);
44 46
45 // Returns a value equivalent to |log(1+x)|, but computed in a way that is 47 // Returns a value equivalent to |log(1+x)|, but computed in a way that is
46 // accurate even if the value of |x| is near zero. 48 // accurate even if the value of |x| is near zero.
47 double log1p(double x); 49 V8_BASE_EXPORT double log1p(double x);
48 50
49 // Returns the base 2 logarithm of |x|. 51 // Returns the base 2 logarithm of |x|.
50 double log2(double x); 52 V8_BASE_EXPORT double log2(double x);
51 53
52 // Returns the base 10 logarithm of |x|. 54 // Returns the base 10 logarithm of |x|.
53 double log10(double x); 55 V8_BASE_EXPORT double log10(double x);
54 56
55 // Returns the cube root of |x|. 57 // Returns the cube root of |x|.
56 double cbrt(double x); 58 V8_BASE_EXPORT double cbrt(double x);
57 59
58 // Returns exp(x)-1, the exponential of |x| minus 1. 60 // Returns exp(x)-1, the exponential of |x| minus 1.
59 double expm1(double x); 61 V8_BASE_EXPORT double expm1(double x);
60 62
61 // Returns the sine of |x|, where |x| is given in radians. 63 // Returns the sine of |x|, where |x| is given in radians.
62 double sin(double x); 64 V8_BASE_EXPORT double sin(double x);
63 65
64 // Returns the tangent of |x|, where |x| is given in radians. 66 // Returns the tangent of |x|, where |x| is given in radians.
65 double tan(double x); 67 V8_BASE_EXPORT double tan(double x);
66 68
67 // Returns the hyperbolic cosine of |x|, where |x| is given radians. 69 // Returns the hyperbolic cosine of |x|, where |x| is given radians.
68 double cosh(double x); 70 V8_BASE_EXPORT double cosh(double x);
69 71
70 // Returns the hyperbolic sine of |x|, where |x| is given radians. 72 // Returns the hyperbolic sine of |x|, where |x| is given radians.
71 double sinh(double x); 73 V8_BASE_EXPORT double sinh(double x);
72 74
73 // Returns the hyperbolic tangent of |x|, where |x| is given radians. 75 // Returns the hyperbolic tangent of |x|, where |x| is given radians.
74 double tanh(double x); 76 V8_BASE_EXPORT double tanh(double x);
75 77
76 } // namespace ieee754 78 } // namespace ieee754
77 } // namespace base 79 } // namespace base
78 } // namespace v8 80 } // namespace v8
79 81
80 #endif // V8_BASE_IEEE754_H_ 82 #endif // V8_BASE_IEEE754_H_
OLDNEW
« no previous file with comments | « src/base/functional.h ('k') | src/base/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698