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

Unified Diff: src/base/ieee754.h

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing breaks 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/assembler.cc ('k') | src/base/ieee754.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/ieee754.h
diff --git a/src/base/ieee754.h b/src/base/ieee754.h
index ffb20734c0f3dbcca72bb6c3c8d068eef3112842..3bb41514bac00dbea4c6d4256a947dda0db64ddd 100644
--- a/src/base/ieee754.h
+++ b/src/base/ieee754.h
@@ -17,6 +17,9 @@ double atan(double x);
// the two arguments to determine the quadrant of the result.
double atan2(double y, double x);
+// Returns the cosine of |x|, where |x| is given in radians.
+double cos(double x);
+
// Returns the base-e exponential of |x|.
double exp(double x);
@@ -29,18 +32,21 @@ double log(double x);
// accurate even if the value of |x| is near zero.
double log1p(double x);
-// Return the base 2 logarithm of |x|.
+// Returns the base 2 logarithm of |x|.
double log2(double x);
-// Return the base 10 logarithm of |x|.
+// Returns the base 10 logarithm of |x|.
double log10(double x);
-// Return cube root of |x|.
+// Returns the cube root of |x|.
double cbrt(double x);
// Returns exp(x)-1, the exponential of |x| minus 1.
double expm1(double x);
+// Returns the sine of |x|, where |x| is given in radians.
+double sin(double x);
+
} // namespace ieee754
} // namespace base
} // namespace v8
« 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