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

Unified Diff: src/base/ieee754.h

Issue 2060743002: [builtins] Introduce proper Float64Log1p operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@Math_Log
Patch Set: REBASE 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') | src/builtins.cc » ('J')
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 3622320b46964bdf611a477afd39e4e709432d00..18540a51f29e7d35a93a6b1a19cef28c67230c81 100644
--- a/src/base/ieee754.h
+++ b/src/base/ieee754.h
@@ -12,6 +12,10 @@ namespace ieee754 {
// Returns the natural logarithm of |x|.
double log(double x);
+// Returns a value equivalent to |log(1+x)|, but computed in a way that is
+// accurate even if the value of |x| is near zero.
+double log1p(double x);
+
} // namespace ieee754
} // namespace base
} // namespace v8
« no previous file with comments | « src/assembler.cc ('k') | src/base/ieee754.cc » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698