]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - bitstream.h
simplify skip_bits().
[paraslash.git] / 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)