Open code SKIP_BITS
authorAndre Noll <maan@systemlinux.org>
Sun, 18 Oct 2009 18:42:09 +0000 (20:42 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:22 +0000 (19:34 +0100)
bitstream.h

index d052337c1a1825d29bc700c8a918177220dc4f74..186f6376dd089903acca90f0b02dc98492f356ee 100644 (file)
@@ -61,22 +61,11 @@ struct vlc {
 /**
  * Increment the internal bit counter.
  *
- * \sa SKIP_CACHE, SKIP_BITS.
+ * \sa SKIP_CACHE.
  */
 #define SKIP_COUNTER(name, gb, num)\
        name##_index += (num);\
 
-/**
- * Skip over the next num bits.
- *
- * This is equivalent to SKIP_CACHE; SKIP_COUNTER.
- */
-#define SKIP_BITS(name, gb, num)\
-       {\
-               SKIP_CACHE(name, gb, num)\
-               SKIP_COUNTER(name, gb, num)\
-       }\
-
 /** Return the next num bits. */
 #define SHOW_UBITS(name, gb, num)\
        NEG_USR32(name##_cache, num)
@@ -178,7 +167,8 @@ static inline int get_vlc(struct getbit_context *gb, VLC_TYPE(*table)[2],
                        n = table[idx][1];
                }
        }
-       SKIP_BITS(re, gb, n)
+       SKIP_CACHE(re, gb, n)
+       SKIP_COUNTER(re, gb, n)
        CLOSE_READER(re, gb)
        return code;
 }