29e444
commit 91998e449e0ce758db55aecf2abc3ee510fcbc8f
29e444
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
29e444
Date:   Fri Dec 28 11:53:01 2012 +0530
29e444
29e444
    Add __glibc_likely as an alias for __builtin_expect when available
29e444
29e444
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
29e444
index fb6c959..1eee54e 100644
29e444
--- a/misc/sys/cdefs.h
29e444
+++ b/misc/sys/cdefs.h
29e444
@@ -378,8 +378,10 @@
29e444
 
29e444
 #if __GNUC__ >= 3
29e444
 # define __glibc_unlikely(cond) __builtin_expect((cond), 0)
29e444
+# define __glibc_likely(cond) __builtin_expect((cond), 1)
29e444
 #else
29e444
 # define __glibc_unlikely(cond) (cond)
29e444
+# define __glibc_likely(cond) (cond)
29e444
 #endif
29e444
 
29e444
 #include <bits/wordsize.h>