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

Unified Diff: src/third_party/fdlibm/fdlibm.js

Issue 1084853002: Fix Math.log10 implementation for 1 - Number.EPSILON. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: preliminary fix for the test case Created 5 years, 8 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 | « no previous file | test/mjsunit/es6/math-log2-log10.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/third_party/fdlibm/fdlibm.js
diff --git a/src/third_party/fdlibm/fdlibm.js b/src/third_party/fdlibm/fdlibm.js
index 8560b5a004e422d81051f8c178557a3904043d04..3dcd8096c38d894d2508d7c952b6ca8488bac693 100644
--- a/src/third_party/fdlibm/fdlibm.js
+++ b/src/third_party/fdlibm/fdlibm.js
@@ -886,7 +886,7 @@ function MathLog10(x) {
if (hx >= 0x7ff00000) return x;
k += (hx >> 20) - 1023;
- var i = (k & 0x80000000) >> 31;
+ var i = (k & 0x80000000) >>> 31;
hx = (hx & 0x000fffff) | ((0x3ff - i) << 20);
var y = k + i;
x = %_ConstructDouble(hx, lx);
« no previous file with comments | « no previous file | test/mjsunit/es6/math-log2-log10.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698