mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +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