changeset 27685:b6e2b2e52bba

Revert the removal of the likely/unlikely macros, they are still used.
author diego
date Sat, 04 Oct 2008 17:55:42 +0000
parents d55c174faeba
children 235164d3b407
files configure
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Oct 04 17:15:39 2008 +0000
+++ b/configure	Sat Oct 04 17:55:42 2008 +0000
@@ -8112,8 +8112,15 @@
 /* "restrict" keyword */
 $_def_restrict_keyword
 
-/* __builtin_expect branch prediction hint, libmpeg2 + FFmpeg */
+/* __builtin_expect branch prediction hint */
 $_def_builtin_expect
+#ifdef HAVE_BUILTIN_EXPECT
+#define likely(x) __builtin_expect ((x) != 0, 1)
+#define unlikely(x) __builtin_expect ((x) != 0, 0)
+#else
+#define likely(x) (x)
+#define unlikely(x) (x)
+#endif
 
 /* attribute(used) as needed by some compilers */
 #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300)