Mercurial > libavcodec.hg
changeset 550:b746a7d75ce6 libavcodec
Force inlining on get_vlc2.
author | mellum |
---|---|
date | Sat, 13 Jul 2002 19:31:15 +0000 |
parents | 218eb765c987 |
children | b2e54bf843b8 |
files | common.h |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/common.h Sat Jul 13 17:30:43 2002 +0000 +++ b/common.h Sat Jul 13 19:31:15 2002 +0000 @@ -36,6 +36,12 @@ #define restrict #endif +#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) +#define always_inline __attribute__((always_inline)) inline +#else +#define always_inline inline +#endif + #ifdef CONFIG_WIN32 /* windows */ @@ -798,7 +804,8 @@ return code; } -static inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2], int bits, int max_depth) +static always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2], + int bits, int max_depth) { int code;