count-one-bits: Fix MSVC specific code.
commitcd3078f00c6dc5e74080b95dc4bee07953256eb9
authorBruno Haible <bruno@clisp.org>
Tue, 26 May 2020 20:27:51 +0000 (26 22:27 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 26 May 2020 20:27:51 +0000 (26 22:27 +0200)
treee3f1be2892e363db04392cfb44d48f173bf62eb9
parent2dd2dab4bccfaca6b6b92a3b9ff5a6dce606af0d
count-one-bits: Fix MSVC specific code.

Reported by Gisle Vanem <gisle.vanem@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.

* lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
using GCC.
[_MSC_VER]: Use correct syntax for #pragma intrinsic.
(__popcnt64): In 32-bit mode, define as an inline function.
(COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
ChangeLog
lib/count-one-bits.h