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

Unified Diff: src/base/ieee754.h

Issue 2063693002: [builtins] Introduce proper Float64Log2 and Float64Log10 operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More precise log10. 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 5b148e9ae3d21fd3c1a10def8a9595990b588788..5a2e534289f2527714c28e185e69bbdbc6ce11de 100644
--- a/src/base/ieee754.h
+++ b/src/base/ieee754.h
@@ -24,6 +24,12 @@ 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|.
+double log2(double x);
+
+// Return the base 10 logarithm of |x|.
+double log10(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