about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--misc/sys/cdefs.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f3e2201bda..df6538e426 100644
--- 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
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index fb6c959d90..1eee54ec80 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -378,8 +378,10 @@
 
 #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>