Original code review: http://codereview.chromium.org/
7777005/
Review URL: http://codereview.chromium.org/
7778007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9032
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
// Move rs to rt and shift it left then right to get the
// desired bitfield on the right side and zeroes on the left.
int shift_left = 32 - (pos + size);
- if (shift_left > 0) {
- sll(rt, rs, shift_left);
- }
+ sll(rt, rs, shift_left); // Acts as a move if shift_left == 0.
int shift_right = 32 - size;
if (shift_right > 0) {