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

Side by Side Diff: src/base/ieee754.h

Issue 2065503002: [builtins] Introduce proper Float64Atan and Float64Atan2 operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: [WIP] Fix GCC/Win32. Created 4 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 unified diff | Download patch
« no previous file with comments | « src/assembler.cc ('k') | src/base/ieee754.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_BASE_IEEE754_H_ 5 #ifndef V8_BASE_IEEE754_H_
6 #define V8_BASE_IEEE754_H_ 6 #define V8_BASE_IEEE754_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace base { 9 namespace base {
10 namespace ieee754 { 10 namespace ieee754 {
11 11
12 // Returns the principal value of the arc tangent of |x|; that is the value
13 // whose tangent is |x|.
14 double atan(double x);
15
16 // Returns the principal value of the arc tangent of |y/x|, using the signs of
17 // the two arguments to determine the quadrant of the result.
18 double atan2(double y, double x);
19
12 // Returns the natural logarithm of |x|. 20 // Returns the natural logarithm of |x|.
13 double log(double x); 21 double log(double x);
14 22
15 // Returns a value equivalent to |log(1+x)|, but computed in a way that is 23 // Returns a value equivalent to |log(1+x)|, but computed in a way that is
16 // accurate even if the value of |x| is near zero. 24 // accurate even if the value of |x| is near zero.
17 double log1p(double x); 25 double log1p(double x);
18 26
19 } // namespace ieee754 27 } // namespace ieee754
20 } // namespace base 28 } // namespace base
21 } // namespace v8 29 } // namespace v8
22 30
23 #endif // V8_BASE_IEEE754_H_ 31 #endif // V8_BASE_IEEE754_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/base/ieee754.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698