* lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
also on clang.
+2020-08-06 Bruno Haible <bruno@clisp.org>
+
+ Use __builtin_expect with clang everywhere.
+ * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
+ also on clang.
+
2020-08-05 Bruno Haible <bruno@clisp.org>
Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
# endif
#endif
-#if __GNUC__ >= 3
+#if (__GNUC__ >= 3) || (__clang_major__ >= 4)
# define __glibc_unlikely(cond) __builtin_expect ((cond), 0)
# define __glibc_likely(cond) __builtin_expect ((cond), 1)
#else