[MPlayer-cvslog] CVS: main configure,1.1048,1.1049

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sat Sep 3 10:53:51 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv10728

Modified Files:
	configure 
Log Message:
likely() and unlikely() macros to help (newer) compilers optimize correctly


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1048
retrieving revision 1.1049
diff -u -r1.1048 -r1.1049
--- configure	26 Aug 2005 19:08:28 -0000	1.1048
+++ configure	3 Sep 2005 08:53:48 -0000	1.1049
@@ -7161,6 +7161,13 @@
 
 /* __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