]> Savannah Git Hosting - gnulib.git/commit
count-leading-zeros: Fix a link error on 32-bit MSVC and a test failure.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Sep 2022 23:34:36 +0000 (01:34 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Sep 2022 02:00:31 +0000 (04:00 +0200)
commit7040c17a736537e35f05199b4535a57a29019e5d
treeccd52afbd63ec7218fb916500e410c737015d477
parentf44f8a6ac69e6872ec5b37953fd04d118fa31257
count-leading-zeros: Fix a link error on 32-bit MSVC and a test failure.

* lib/count-leading-zeros.h: Correct syntax for #pragma intrinsic.
(COUNT_LEADING_ZEROS): Fix the return value.
(count_leading_zeros_ll): Use two _BitScanReverse invocations instead
of a _BitScanReverse64 invocation.
ChangeLog
lib/count-leading-zeros.h