Mercurial > mplayer.hg
comparison configure @ 27685:b6e2b2e52bba
Revert the removal of the likely/unlikely macros, they are still used.
author | diego |
---|---|
date | Sat, 04 Oct 2008 17:55:42 +0000 |
parents | d55c174faeba |
children | d6ae24838f0f |
comparison
equal
deleted
inserted
replaced
27684:d55c174faeba | 27685:b6e2b2e52bba |
---|---|
8110 $_def_stream_cache | 8110 $_def_stream_cache |
8111 | 8111 |
8112 /* "restrict" keyword */ | 8112 /* "restrict" keyword */ |
8113 $_def_restrict_keyword | 8113 $_def_restrict_keyword |
8114 | 8114 |
8115 /* __builtin_expect branch prediction hint, libmpeg2 + FFmpeg */ | 8115 /* __builtin_expect branch prediction hint */ |
8116 $_def_builtin_expect | 8116 $_def_builtin_expect |
8117 #ifdef HAVE_BUILTIN_EXPECT | |
8118 #define likely(x) __builtin_expect ((x) != 0, 1) | |
8119 #define unlikely(x) __builtin_expect ((x) != 0, 0) | |
8120 #else | |
8121 #define likely(x) (x) | |
8122 #define unlikely(x) (x) | |
8123 #endif | |
8117 | 8124 |
8118 /* attribute(used) as needed by some compilers */ | 8125 /* attribute(used) as needed by some compilers */ |
8119 #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300) | 8126 #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300) |
8120 # define attribute_used __attribute__((used)) | 8127 # define attribute_used __attribute__((used)) |
8121 #else | 8128 #else |