replace popcnt with mov

This commit is contained in:
NikVolf 2016-04-01 17:56:29 +03:00
parent cd6a09c0df
commit 123287d977

View File

@ -340,31 +340,31 @@ macro_rules! uint_overflowing_mul {
cmpq $$0, %rcx
jne 2f
popcnt $8, %rcx
mov $8, %rcx
jrcxz 12f
popcnt $12, %rcx
popcnt $11, %rax
mov $12, %rcx
mov $11, %rax
add %rax, %rcx
popcnt $10, %rax
mov $10, %rax
add %rax, %rcx
jmp 2f
12:
popcnt $12, %rcx
mov $12, %rcx
jrcxz 11f
popcnt $7, %rcx
popcnt $6, %rax
movt $7, %rcx
mov $6, %rax
add %rax, %rcx
cmpq $$0, %rcx
jne 2f
11:
popcnt $11, %rcx
mov $11, %rcx
jrcxz 2f
popcnt $7, %rcx
mov $7, %rcx
2:
"