mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
cosmetics: add {}s on continued control statements
for consistency within the codebase. in some cases simply join the lines. Change-Id: I071f061052e274c8a69f651ed4305befb4414a40
This commit is contained in:
@ -143,13 +143,13 @@ int VP8PutBitUniform(VP8BitWriter* const bw, int bit) {
|
||||
void VP8PutBits(VP8BitWriter* const bw, uint32_t value, int nb_bits) {
|
||||
uint32_t mask;
|
||||
assert(nb_bits > 0 && nb_bits < 32);
|
||||
for (mask = 1u << (nb_bits - 1); mask; mask >>= 1)
|
||||
for (mask = 1u << (nb_bits - 1); mask; mask >>= 1) {
|
||||
VP8PutBitUniform(bw, value & mask);
|
||||
}
|
||||
}
|
||||
|
||||
void VP8PutSignedBits(VP8BitWriter* const bw, int value, int nb_bits) {
|
||||
if (!VP8PutBitUniform(bw, value != 0))
|
||||
return;
|
||||
if (!VP8PutBitUniform(bw, value != 0)) return;
|
||||
if (value < 0) {
|
||||
VP8PutBits(bw, ((-value) << 1) | 1, nb_bits + 1);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user