Mercurial > mplayer.hg
diff configure @ 16368:8b7a72777a12
likely() and unlikely() macros to help (newer) compilers optimize correctly
author | reimar |
---|---|
date | Sat, 03 Sep 2005 08:53:48 +0000 |
parents | f1951428d8b7 |
children | e2e231134056 |
line wrap: on
line diff
--- a/configure Sat Sep 03 08:48:59 2005 +0000 +++ b/configure Sat Sep 03 08:53:48 2005 +0000 @@ -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)