Add __glibc_likely as an alias for __builtin_expect when available
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 28 Dec 2012 06:23:01 +0000 (11:53 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 28 Dec 2012 06:23:01 +0000 (11:53 +0530)
ChangeLog
misc/sys/cdefs.h

index f3e2201..df6538e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+       * misc/sys/cdefs.h(__glibc_likely): Wrap __builtin_expect for
+       TRUE case.
+
        * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
        (norm): Likewise.
        * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
index fb6c959..1eee54e 100644 (file)
 
 #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>