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.
2 parents db30b83 + bd4e882 commit 2c1f554Copy full SHA for 2c1f554
ewah/ewok.h
@@ -47,7 +47,8 @@ static inline uint32_t ewah_bit_popcount64(uint64_t x)
47
return (x * 0x0101010101010101ULL) >> 56;
48
}
49
50
-#ifdef __GNUC__
+/* __builtin_ctzll was not available until 3.4.0 */
51
+#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR > 3))
52
#define ewah_bit_ctz64(x) __builtin_ctzll(x)
53
#else
54
static inline int ewah_bit_ctz64(uint64_t x)
0 commit comments