From 1301313c2eb8a9ce0ba8ce22062d1f87fc419aa2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 18 Oct 2009 20:52:47 +0200 Subject: [PATCH] simplify skip_bits(). --- bitstream.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) -- 2.39.2