projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b12b29
)
bitstream.h: Remove some superflous parentheses.
author
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 6 Feb 2016 06:11:44 +0000
(07:11 +0100)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 6 Mar 2016 20:29:06 +0000
(21:29 +0100)
bitstream.h
patch
|
blob
|
history
diff --git
a/bitstream.h
b/bitstream.h
index
ee32667
..
5875b0d
100644
(file)
--- a/
bitstream.h
+++ b/
bitstream.h
@@
-37,7
+37,7
@@
static inline uint32_t show_bits(struct getbit_context *gbc, int num)
{
int idx = gbc->index;
const uint8_t *p = gbc->buffer + (idx >> 3);
- uint32_t x = (
(p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3])
;
+ uint32_t x = (
p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]
;
return (x << (idx & 7)) >> (32 - num);
}
@@
-62,7
+62,7
@@
static inline unsigned int get_bits(struct getbit_context *gbc, int n)
static inline unsigned int get_bit(struct getbit_context *gbc)
{
int idx = gbc->index++;
- uint8_t tmp = gbc->buffer[idx >> 3], mask =
(1 << (7 - (idx & 7)
));
+ uint8_t tmp = gbc->buffer[idx >> 3], mask =
1 << (7 - (idx & 7
));
return !!(tmp & mask);
}