Mercurial > mplayer.hg
changeset 16368:8b7a72777a12
likely() and unlikely() macros to help (newer) compilers optimize correctly
author | reimar |
---|---|
date | Sat, 03 Sep 2005 08:53:48 +0000 |
parents | 8e859a01904f |
children | 8ea2e7ab3106 |
files | configure |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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)