]> 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:02:48 +0000 (04:02 +0200)
commit4771646e7232e586d2ab3b1b12dc5629be1c9b10
tree370c50cc8f8517d37b563abdfb6ae63696d8cd67
parent41b2240736b374b366ffece4e272e1b8b02bc71d
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