diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-12-28 11:53:01 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-12-28 11:53:01 +0530 |
commit | 91998e449e0ce758db55aecf2abc3ee510fcbc8f (patch) | |
tree | 9c4ef1fa02e73e8cf31185a83e46b7044b84ba2b /misc/sys | |
parent | 99136f82027a5d6276c94a25d8392a7b571a08a3 (diff) | |
download | glibc-91998e449e0ce758db55aecf2abc3ee510fcbc8f.tar glibc-91998e449e0ce758db55aecf2abc3ee510fcbc8f.tar.gz glibc-91998e449e0ce758db55aecf2abc3ee510fcbc8f.tar.bz2 glibc-91998e449e0ce758db55aecf2abc3ee510fcbc8f.zip |
Add __glibc_likely as an alias for __builtin_expect when available
Diffstat (limited to 'misc/sys')
-rw-r--r-- | misc/sys/cdefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index fb6c959d90..1eee54ec80 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -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> |