]> Savannah Git Hosting - gnulib.git/commit
Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Aug 2020 17:57:21 +0000 (19:57 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 5 Aug 2020 17:57:21 +0000 (19:57 +0200)
commit50bf1b6fe4fe406568884bce97ddcff935571a0a
tree4956a4820cf881c88360990ea95cfa44bde0a7e9
parent878c98336e9d915a9150eb473d5825d6dde7880d
Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.

* lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
built-in also on clang.
* lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
* lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
ChangeLog
lib/count-trailing-zeros.h
lib/ffs.c
lib/ffsl.h