OLD | NEW |
1 // The following is adapted from fdlibm (http://www.netlib.org/fdlibm). | 1 // The following is adapted from fdlibm (http://www.netlib.org/fdlibm). |
2 // | 2 // |
3 // ==================================================== | 3 // ==================================================== |
4 // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. | 4 // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. |
5 // | 5 // |
6 // Developed at SunSoft, a Sun Microsystems, Inc. business. | 6 // Developed at SunSoft, a Sun Microsystems, Inc. business. |
7 // Permission to use, copy, modify, and distribute this | 7 // Permission to use, copy, modify, and distribute this |
8 // software is freely granted, provided that this notice | 8 // software is freely granted, provided that this notice |
9 // is preserved. | 9 // is preserved. |
10 // ==================================================== | 10 // ==================================================== |
11 // | 11 // |
12 // The original source code covered by the above license above has been | 12 // The original source code covered by the above license above has been |
13 // modified significantly by Google Inc. | 13 // modified significantly by Google Inc. |
14 // Copyright 2014 the V8 project authors. All rights reserved. | 14 // Copyright 2014 the V8 project authors. All rights reserved. |
15 | 15 |
16 #ifndef V8_FDLIBM_H_ | 16 #ifndef V8_FDLIBM_H_ |
17 #define V8_FDLIBM_H_ | 17 #define V8_FDLIBM_H_ |
18 | 18 |
19 namespace v8 { | 19 namespace v8 { |
20 namespace fdlibm { | 20 namespace fdlibm { |
21 | 21 |
22 int rempio2(double x, double* y); | 22 int rempio2(double x, double* y); |
23 | 23 |
24 // Constants to be exposed to builtins via Float64Array. | 24 // Constants to be exposed to builtins via Float64Array. |
25 struct TrigonometricConstants { | 25 struct MathConstants { |
26 static const double constants[34]; | 26 static const double constants[45]; |
27 }; | 27 }; |
28 } | 28 } |
29 } // namespace v8::internal | 29 } // namespace v8::internal |
30 | 30 |
31 #endif // V8_FDLIBM_H_ | 31 #endif // V8_FDLIBM_H_ |
OLD | NEW |