Index: src/rempio2.h |
diff --git a/src/rempio2.h b/src/rempio2.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dc3d92a20680b5e0d9c3f6c95d7ec323655cd8b3 |
--- /dev/null |
+++ b/src/rempio2.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2014 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// ==================================================== |
+// Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. |
+// |
+// Developed at SunSoft, a Sun Microsystems, Inc. business. |
+// Permission to use, copy, modify, and distribute this |
+// software is freely granted, provided that this notice |
+// is preserved. |
+// ==================================================== |
+// |
+// The following is adapted from fdlibm (http://www.netlib.org/fdlibm). |
+ |
+#ifndef V8_REMPIO2_H_ |
+#define V8_REMPIO2_H_ |
+ |
+namespace v8 { |
+namespace internal { |
+ |
+int rempio2(double x, double* y); |
+ |
+// Constants to be exposed to builtins via Float64Array. |
+struct TrigonometricConstants { |
+ static const double constants[34]; |
+}; |
+} |
+} // namespace v8::internal |
+ |
+#endif // V8_REMPIO2_H_ |