simplify skip_bits().
authorAndre Noll <maan@systemlinux.org>
Sun, 18 Oct 2009 18:52:47 +0000 (20:52 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:23 +0000 (19:34 +0100)
bitstream.h

index 186f6376dd089903acca90f0b02dc98492f356ee..553dd04a0737b0c0cac9c845be8a460a13a64ffd 100644 (file)
@@ -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)