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

Unified Diff: src/rempio2.h

Issue 303753002: Trigonometric functions using fdlibm. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: touch ups Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/math.js ('k') | src/rempio2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/rempio2.h
diff --git a/src/rempio2.h b/src/rempio2.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b599aacfbd8430fa9e61801a28e082a29d7f260
--- /dev/null
+++ b/src/rempio2.h
@@ -0,0 +1,35 @@
+// 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.
+class TrigonometricConstants : AllStatic {
+ public:
+ static void* constants() { return const_cast<double*>(constants_); }
+ static const int kSize = 34;
+ private:
+ static const double constants_[kSize];
+};
+
+} } // namespace v8::internal
+
+#endif // V8_REMPIO2_H_
« no previous file with comments | « src/math.js ('k') | src/rempio2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698