It turns out that Sunspider 1.0's 3d-morph verifies that the floating
point error must start with 6.
R=jkummerow@chromium.org
BUG=
Review URL: https://codereview.chromium.org/
61593008
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17725
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
// Also define the initialization function that populates the lookup table
// and then wires up the function definitions.
function SetupTrigonometricFunctions() {
- var samples = 1800; // Table size.
+ // TODO(yangguo): The following table size has been chosen to satisfy
+ // Sunspider's brittle result verification. Reconsider relevance.
+ var samples = 4489;
var pi = 3.1415926535897932;
var pi_half = pi / 2;
var inverse_pi_half = 2 / pi;