Commit e0a11825 authored by mellum's avatar mellum

Force inlining on get_vlc2.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@756 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 37af91db
......@@ -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 @@ static inline int get_vlc(GetBitContext *s, VLC *vlc)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment