From 123287d9771176b9d769df38e31c99e2fc182731 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Fri, 1 Apr 2016 17:56:29 +0300 Subject: [PATCH] replace popcnt with mov --- util/bigint/src/uint.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/util/bigint/src/uint.rs b/util/bigint/src/uint.rs index 7bc6007ed..330d20e36 100644 --- a/util/bigint/src/uint.rs +++ b/util/bigint/src/uint.rs @@ -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: "