Mercurial > libavcodec.hg
diff common.h @ 550:b746a7d75ce6 libavcodec
Force inlining on get_vlc2.
| author | mellum |
|---|---|
| date | Sat, 13 Jul 2002 19:31:15 +0000 |
| parents | d55978a3c369 |
| children | 5a06c3552026 |
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;
