projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0e2426
)
simplify skip_bits().
author
Andre Noll
<maan@systemlinux.org>
Sun, 18 Oct 2009 18:52:47 +0000
(20:52 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:23 +0000
(19:34 +0100)
bitstream.h
patch
|
blob
|
history
diff --git
a/bitstream.h
b/bitstream.h
index
186f637
..
553dd04
100644
(file)
--- 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)