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

Issue 125245: Optimize special cases of Math.pow(). (Closed)

Created:
11 years, 6 months ago by Kasper Lund
Modified:
9 years, 7 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

Optimize special cases of Math.pow(). Committed: http://code.google.com/p/v8/source/detail?r=2201

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -2 lines) Patch
M src/runtime.cc View 1 2 1 chunk +48 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Kasper Lund
11 years, 6 months ago (2009-06-17 09:17:25 UTC) #1
William Hesse
11 years, 6 months ago (2009-06-17 11:00:32 UTC) #2
LGTM.

http://codereview.chromium.org/125245/diff/6/7
File src/runtime.cc (right):

http://codereview.chromium.org/125245/diff/6/7#newcode4187
Line 4187: m *= m;
Can't you use m = pow(m, 2) here?

http://codereview.chromium.org/125245/diff/6/7#newcode4215
Line 4215: } else if (y == 0) {
I would move this test above y == +- 0.5.

Powered by Google App Engine
This is Rietveld 408576698