mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Add __glibc_likely as an alias for __builtin_expect when available
This commit is contained in:
@@ -378,8 +378,10 @@
|
||||
|
||||
#if __GNUC__ >= 3
|
||||
# define __glibc_unlikely(cond) __builtin_expect((cond), 0)
|
||||
# define __glibc_likely(cond) __builtin_expect((cond), 1)
|
||||
#else
|
||||
# define __glibc_unlikely(cond) (cond)
|
||||
# define __glibc_likely(cond) (cond)
|
||||
#endif
|
||||
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
Reference in New Issue
Block a user