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

Issue 164054: X64: Optimize MOD operator by a constant power of 2. (Closed)

Created:
11 years, 4 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

X64: Optimize MOD operator by a constant power of 2. Committed: http://code.google.com/p/v8/source/detail?r=2634

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -47 lines) Patch
M src/x64/codegen-x64.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 6 chunks +118 lines, -47 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
William Hesse
11 years, 4 months ago (2009-08-06 11:32:38 UTC) #1
Erik Corry
11 years, 4 months ago (2009-08-06 11:46:19 UTC) #2
LGTM

http://codereview.chromium.org/164054/diff/1/2
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/164054/diff/1/2#newcode4990
Line 4990: break;  // This break only applies if the condition of the if is
true.
Somewhat tautologous.  Perhaps "This break ... if the dividend was a power of 2"

Powered by Google App Engine
This is Rietveld 408576698