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

Side by Side Diff: src/rempio2.h

Issue 411263004: Implement trigonometric functions using a fdlibm port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/math.js ('k') | src/rempio2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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