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

Unified Diff: src/runtime.cc

Issue 305403002: fdlibm: reduce accuracy slightly in favor of performance. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
« src/math.js ('K') | « src/rempio2.cc ('k') | test/mjsunit/sin-cos.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 28d24d5ed07ff174ed64df13dee3ebe24a6ca555..751050b988c4de462966ac0681b00f1913c72773 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -7779,12 +7779,11 @@ RUNTIME_FUNCTION(Runtime_RemPiO2) {
ASSERT(args.length() == 1);
CONVERT_DOUBLE_ARG_CHECKED(x, 0);
Factory* factory = isolate->factory();
- double y[2];
- int n = rempio2(x, y);
- Handle<FixedArray> array = factory->NewFixedArray(3);
+ double y;
+ int n = rempio2(x, &y);
+ Handle<FixedArray> array = factory->NewFixedArray(2);
array->set(0, Smi::FromInt(n));
- array->set(1, *factory->NewHeapNumber(y[0]));
- array->set(2, *factory->NewHeapNumber(y[1]));
+ array->set(1, *factory->NewHeapNumber(y));
return *factory->NewJSArrayWithElements(array);
}
« src/math.js ('K') | « src/rempio2.cc ('k') | test/mjsunit/sin-cos.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698