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