Add HAVE_CTZ, HAVE_CTZL, and HAVE_CTZLL

This commit is contained in:
Francois Kritzinger 2022-04-14 13:50:23 +02:00
parent c95f077194
commit 701dcd4e9f
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// HAVE_BUILTIN_CTZ
#undef HAVE_BUILTIN_CTZ
/* __builtin_ctz (count the leading/most-significant zeros in an unsigned int)
* is available in all versions of GCC and Clang.
*/
#if defined (__GNUC__) || defined(__clang__)
# define HAVE_BUILTIN_CTZ 1
#endif

View File

@ -0,0 +1,10 @@
// HAVE_BUILTIN_CTZL
#undef HAVE_BUILTIN_CTZL
/* __builtin_ctzl (count the leading/most-significant zeros in an unsigned
* long) is available in all versions of GCC and Clang.
*/
#if defined (__GNUC__) || defined(__clang__)
# define HAVE_BUILTIN_CTZL 1
#endif

View File

@ -0,0 +1,10 @@
// HAVE_BUILTIN_CTZLL
#undef HAVE_BUILTIN_CTZLL
/* __builtin_ctzll (count the leading/most-significant zeros in an unsigned
* long long) is available in all versions of GCC and Clang.
*/
#if defined (__GNUC__) || defined(__clang__)
# define HAVE_BUILTIN_CTZLL 1
#endif