Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
16367:8e859a01904f | 16368:8b7a72777a12 |
---|---|
7159 /* "restrict" keyword */ | 7159 /* "restrict" keyword */ |
7160 $_def_restrict_keyword | 7160 $_def_restrict_keyword |
7161 | 7161 |
7162 /* __builtin_expect branch prediction hint */ | 7162 /* __builtin_expect branch prediction hint */ |
7163 $_def_builtin_expect | 7163 $_def_builtin_expect |
7164 #ifdef HAVE_BUILTIN_EXPECT | |
7165 #define likely(x) __builtin_expect ((x) != 0, 1) | |
7166 #define unlikely(x) __builtin_expect ((x) != 0, 0) | |
7167 #else | |
7168 #define likely(x) (x) | |
7169 #define unlikely(x) (x) | |
7170 #endif | |
7164 | 7171 |
7165 /* attribute(used) as needed by some compilers */ | 7172 /* attribute(used) as needed by some compilers */ |
7166 #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300) | 7173 #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300) |
7167 # define attribute_used __attribute__((used)) | 7174 # define attribute_used __attribute__((used)) |
7168 #else | 7175 #else |