]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 f3e2201bdaa2dbbf007882fbed783169888bc6e1..df6538e426257462aab30b85fe4b54985ec42feb 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 fb6c959d903474b38fd0fcc36e17c5290dcd867c..1eee54ec80c9d9b4f5d735c55f7c0c5cedb3df4b 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>