[MPlayer-cvslog] r27717 - trunk/configure

diego subversion at mplayerhq.hu
Sat Oct 4 19:55:43 CEST 2008


Author: diego
Date: Sat Oct  4 19:55:42 2008
New Revision: 27717

Log:
Revert the removal of the likely/unlikely macros, they are still used.


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sat Oct  4 19:55:42 2008
@@ -8112,8 +8112,15 @@ $_def_stream_cache
 /* "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)



More information about the MPlayer-cvslog mailing list