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:
James Zern
2016-08-03 18:53:40 -07:00
parent d2e4484ef3
commit b551e587b3
11 changed files with 65 additions and 76 deletions

View File

@ -281,10 +281,10 @@ extern VP8LVectorMismatchFunc VP8LVectorMismatch;
static WEBP_INLINE int VP8LBitsLog2Ceiling(uint32_t n) {
const int log_floor = BitsLog2Floor(n);
if (n == (n & ~(n - 1))) // zero or a power of two.
if (n == (n & ~(n - 1))) { // zero or a power of two.
return log_floor;
else
return log_floor + 1;
}
return log_floor + 1;
}
// Splitting of distance and length codes into prefixes and

View File

@ -364,8 +364,9 @@ static int VectorMismatch(const uint32_t* const array1,
if (length >= 8 &&
_mm_movemask_epi8(_mm_cmpeq_epi32(
_mm_loadu_si128((const __m128i*)&array1[4]),
_mm_loadu_si128((const __m128i*)&array2[4]))) == 0xffff)
_mm_loadu_si128((const __m128i*)&array2[4]))) == 0xffff) {
match_len = 8;
}
}
}