OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // ==================================================== | |
6 // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. | |
7 // | |
8 // Developed at SunSoft, a Sun Microsystems, Inc. business. | |
9 // Permission to use, copy, modify, and distribute this | |
10 // software is freely granted, provided that this notice | |
11 // is preserved. | |
12 // ==================================================== | |
13 // | |
14 // The following is adapted from fdlibm (http://www.netlib.org/fdlibm). | |
15 | |
16 #ifndef V8_REMPIO2_H_ | |
17 #define V8_REMPIO2_H_ | |
18 | |
19 namespace v8 { | |
20 namespace internal { | |
21 | |
22 int rempio2(double x, double* y); | |
23 | |
24 // Constants to be exposed to builtins via Float64Array. | |
25 class TrigonometricConstants : AllStatic { | |
26 public: | |
27 static void* constants() { return const_cast<double*>(constants_); } | |
Sven Panne
2014/07/24 10:44:21
Casting away const here looks wrong: The array its
Yang
2014/07/24 11:00:33
Done.
| |
28 static const int kSize = 34; | |
29 | |
30 private: | |
31 static const double constants_[kSize]; | |
32 }; | |
33 } | |
34 } // namespace v8::internal | |
35 | |
36 #endif // V8_REMPIO2_H_ | |
OLD | NEW |