Created
October 20, 2011 19:27
-
-
Save mraleph/1302061 to your computer and use it in GitHub Desktop.
CountLeadingZeros.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/arm/macro-assembler-arm.cc | |
=================================================================== | |
--- src/arm/macro-assembler-arm.cc (revision 9710) | |
+++ src/arm/macro-assembler-arm.cc (working copy) | |
@@ -2907,8 +2907,8 @@ | |
#ifdef CAN_USE_ARMV5_INSTRUCTIONS | |
clz(zeros, source); // This instruction is only supported after ARM5. | |
#else | |
+ Move(scratch, source); | |
mov(zeros, Operand(0, RelocInfo::NONE)); | |
- Move(scratch, source); | |
// Top 16. | |
tst(scratch, Operand(0xffff0000)); | |
add(zeros, zeros, Operand(16), LeaveCC, eq); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment