From: Andre Noll Date: Sun, 18 Oct 2009 18:52:47 +0000 (+0200) Subject: simplify skip_bits(). X-Git-Tag: v0.4.1~62 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=1301313c2eb8a9ce0ba8ce22062d1f87fc419aa2 simplify skip_bits(). --- diff --git a/bitstream.h b/bitstream.h index 186f6376..553dd04a 100644 --- a/bitstream.h +++ b/bitstream.h @@ -91,11 +91,7 @@ static inline unsigned int get_bits(struct getbit_context *s, int n) static inline void skip_bits(struct getbit_context *s, int n) { - /* gcc seems to optimize this to s->index+=n for the ALT_READER :)) */ - OPEN_READER(re, s) - UPDATE_CACHE(re, s) - SKIP_COUNTER(re, s, n) - CLOSE_READER(re, s) + s->index += n; } static inline unsigned int get_bits1(struct getbit_context *s)