arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh989862-3.patch

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