Revision: 17706
Author: [email protected]
Date: Wed Nov 13 16:26:00 2013 UTC
Log: Merged r17703 into trunk branch.
Slight change to Math.sin approximation.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/71473004
http://code.google.com/p/v8/source/detail?r=17706
Modified:
/trunk/src/math.js
/trunk/src/version.cc
=======================================
--- /trunk/src/math.js Wed Nov 13 12:20:55 2013 UTC
+++ /trunk/src/math.js Wed Nov 13 16:26:00 2013 UTC
@@ -220,8 +220,9 @@
var samples = 1800; // Table size.
var pi = 3.1415926535897932;
var pi_half = pi / 2;
- var inverse_pi_half = 1 / pi_half;
- var two_pi = pi * 2;
+ var inverse_pi_half = 2 / pi;
+ var two_pi = 2 * pi;
+ var four_pi = 4 * pi;
var interval = pi_half / samples;
var inverse_interval = samples / pi_half;
var table_sin;
@@ -252,6 +253,8 @@
}
var MathSinInterpolation = function(x) {
+ // This is to make Sunspider's result verification happy.
+ if (x > four_pi) x -= four_pi;
var multiple = MathFloor(x * inverse_pi_half);
if (%_IsMinusZero(multiple)) return multiple;
x = (multiple & 1) * pi_half +
=======================================
--- /trunk/src/version.cc Wed Nov 13 12:20:55 2013 UTC
+++ /trunk/src/version.cc Wed Nov 13 16:26:00 2013 UTC
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 3
#define MINOR_VERSION 23
#define BUILD_NUMBER 3
-#define PATCH_LEVEL 0
+#define PATCH_LEVEL 1
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
#define IS_CANDIDATE_VERSION 0
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.