We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79774c commit ce50807Copy full SHA for ce50807
src/quicktions.pyx
@@ -103,7 +103,7 @@ cdef extern from *:
103
#define _PyLong_GCD(a, b) (NULL)
104
#endif
105
106
- #ifdef __GCC__
+ #if defined(__GCC__) && __has_builtin(__builtin_ctz) && __has_builtin(__builtin_ctzl) && __has_builtin(__builtin_ctzll)
107
#define __Quicktions_HAS_FAST_CTZ 1
108
#define __Quicktions_trailing_zeros_uint(x) __builtin_ctz(x)
109
#define __Quicktions_trailing_zeros_ulong(x) __builtin_ctzl(x)
0 commit comments