]> 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>
Sun, 4 Sep 2022 23:34:36 +0000 (01:34 +0200)
commit6689528e4b24e199b3feba2381cafc6905f249c5
tree23b6eb90c42b06ba1b28f41118336df7f221a66d
parent3730c889a4b671ea4513374a6977b941494a29bd
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