]> xenbits.xensource.com Git - xen.git/commitdiff
x86: further speed-up to hweight{32,64}()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Jun 2019 15:21:05 +0000 (17:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Jun 2019 15:21:05 +0000 (17:21 +0200)
According to Linux commit 0136611c62 ("optimize hweight64 for x86_64")
this is a further improvement over the variant using only bitwise
operations. It's also a slight further code size reduction.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/Kconfig

index 4b8b07b5496b4131c579d26de402dcb13e5d6406..f502d765ba3d7a18d9474ee4bf66fa873dbef722 100644 (file)
@@ -12,6 +12,7 @@ config X86
        select HAS_CPUFREQ
        select HAS_EHCI
        select HAS_EX_TABLE
+       select HAS_FAST_MULTIPLY
        select HAS_GDBSX
        select HAS_IOPORTS
        select HAS_KEXEC