@@ -93,15 +93,9 @@ template <typename T, typename = cpp::enable_if_t<cpp::is_unsigned_v<T>>>
93
93
#if LIBC_HAS_BUILTIN(__builtin_ctzs)
94
94
ADD_SPECIALIZATION (countr_zero, unsigned short , __builtin_ctzs)
95
95
#endif
96
- #if LIBC_HAS_BUILTIN(__builtin_ctz)
97
96
ADD_SPECIALIZATION (countr_zero, unsigned int , __builtin_ctz)
98
- #endif
99
- #if LIBC_HAS_BUILTIN(__builtin_ctzl)
100
97
ADD_SPECIALIZATION (countr_zero, unsigned long , __builtin_ctzl)
101
- #endif
102
- #if LIBC_HAS_BUILTIN(__builtin_ctzll)
103
98
ADD_SPECIALIZATION (countr_zero, unsigned long long , __builtin_ctzll)
104
- #endif
105
99
106
100
// / Count number of 0's from the most significant bit to the least
107
101
// / stopping at the first 1.
@@ -128,15 +122,9 @@ template <typename T, typename = cpp::enable_if_t<cpp::is_unsigned_v<T>>>
128
122
#if LIBC_HAS_BUILTIN(__builtin_clzs)
129
123
ADD_SPECIALIZATION (countl_zero, unsigned short , __builtin_clzs)
130
124
#endif
131
- #if LIBC_HAS_BUILTIN(__builtin_clz)
132
125
ADD_SPECIALIZATION (countl_zero, unsigned int , __builtin_clz)
133
- #endif
134
- #if LIBC_HAS_BUILTIN(__builtin_clzl)
135
126
ADD_SPECIALIZATION (countl_zero, unsigned long , __builtin_clzl)
136
- #endif
137
- #if LIBC_HAS_BUILTIN(__builtin_clzll)
138
127
ADD_SPECIALIZATION (countl_zero, unsigned long long , __builtin_clzll)
139
- #endif
140
128
141
129
#undef ADD_SPECIALIZATION
142
130
@@ -256,15 +244,9 @@ template <typename T, typename = cpp::enable_if_t<cpp::is_unsigned_v<T>>>
256
244
#if LIBC_HAS_BUILTIN(__builtin_clzs)
257
245
SPECIALIZE_FLZ (first_leading_zero, unsigned short , __builtin_clzs)
258
246
#endif
259
- #if LIBC_HAS_BUILTIN(__builtin_clz)
260
247
SPECIALIZE_FLZ (first_leading_zero, unsigned int , __builtin_clz)
261
- #endif
262
- #if LIBC_HAS_BUILTIN(__builtin_clzl)
263
248
SPECIALIZE_FLZ (first_leading_zero, unsigned long , __builtin_clzl)
264
- #endif
265
- #if LIBC_HAS_BUILTIN(__builtin_clzll)
266
249
SPECIALIZE_FLZ (first_leading_zero, unsigned long long , __builtin_clzll)
267
- #endif
268
250
269
251
#undef SPECIALIZE_FLZ
270
252
0 commit comments