From: Andre Noll Date: Sat, 6 Feb 2016 06:11:44 +0000 (+0100) Subject: bitstream.h: Remove some superflous parentheses. X-Git-Tag: v0.5.6~32^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=3857c8845280532a4c724f8215ef390b3a352567 bitstream.h: Remove some superflous parentheses. --- diff --git a/bitstream.h b/bitstream.h index ee32667e..5875b0d0 100644 --- 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); }