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)
commit291c68f10e8ec6dc46737f27617949fd2f04e6ef
treef331bed591857938e4b5068d6f8c2eba74e0fb31
parentaad7bdae14676f07d6e7fec70941c72078d01562
x86: further speed-up to hweight{32,64}()

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