diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-01-06 09:05:22 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-01-06 09:05:47 -0800 |
commit | 987cb086f36e1f39644589c19b88d306b9476c82 (patch) | |
tree | 1f0422cec47920fd80fc154c86e353d074f78ac2 /lib/count-leading-zeros.h | |
parent | ba8e4c8d984cfd05991647b14caee495be36febe (diff) | |
download | gnulib-987cb086f36e1f39644589c19b88d306b9476c82.tar.gz |
count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
This reverts the last patch but one, as it shouldn't be needed now
that the typo is fixed.
* lib/count-leading-zeros.h (count_leading_zeros_ll):
* lib/count-trailing-zeros.h:
* lib/count-one-bits.h:
Go back to using 64-bit intrinsics.
Diffstat (limited to 'lib/count-leading-zeros.h')
-rw-r--r-- | lib/count-leading-zeros.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/count-leading-zeros.h b/lib/count-leading-zeros.h index 166309a3f8..5904eb7f78 100644 --- a/lib/count-leading-zeros.h +++ b/lib/count-leading-zeros.h @@ -104,13 +104,8 @@ count_leading_zeros_l (unsigned long int x) COUNT_LEADING_ZEROS_INLINE int count_leading_zeros_ll (unsigned long long int x) { -# if _MSC_VER && ! defined _M_X64 - int count = count_leading_zeros (x >> 31 >> 1); - return count < 32 ? count : 32 + count_leading_zeros (x); -# else COUNT_LEADING_ZEROS (__builtin_clzll, _BitScanReverse64, unsigned long long int); -# endif } #endif |