cosmetics

long line, remove out of date TODO

Change-Id: Ic8a40c9d731178af85645b3e24c1cbd807d7d58b
This commit is contained in:
James Zern 2012-03-30 15:26:07 -07:00
parent 6860c2ea9d
commit 8d254a0927
2 changed files with 3 additions and 2 deletions

View File

@ -467,7 +467,8 @@ typedef const uint8_t (*ProbaArray)[NUM_CTX][NUM_PROBAS]; // for const-casting
// (and 0 if there's no coeff at all) // (and 0 if there's no coeff at all)
static int GetCoeffs(VP8BitReader* const br, ProbaArray prob, static int GetCoeffs(VP8BitReader* const br, ProbaArray prob,
int ctx, const quant_t dq, int n, int16_t* out) { int ctx, const quant_t dq, int n, int16_t* out) {
const uint8_t* p = prob[n][ctx]; // n is either 0 or 1 here. kBands[n] is not necessary. // n is either 0 or 1 here. kBands[n] is not necessary for extracting '*p'.
const uint8_t* p = prob[n][ctx];
if (!VP8GetBit(br, p[0])) { // first EOB is more a 'CBP' bit. if (!VP8GetBit(br, p[0])) { // first EOB is more a 'CBP' bit.
return 0; return 0;
} }

View File

@ -80,7 +80,7 @@ static WEBP_INLINE void VP8LoadNewBytes(VP8BitReader* const br) {
bit_t bits; bit_t bits;
lbit_t in_bits = *(lbit_t*)br->buf_; lbit_t in_bits = *(lbit_t*)br->buf_;
br->buf_ += (BITS) >> 3; br->buf_ += (BITS) >> 3;
#if !defined(__BIG_ENDIAN__) // TODO(skal): what about PPC? #if !defined(__BIG_ENDIAN__)
#if (BITS == 32) #if (BITS == 32)
#if defined(__i386__) || defined(__x86_64__) #if defined(__i386__) || defined(__x86_64__)
__asm__ volatile("bswap %k0" : "=r"(in_bits) : "0"(in_bits)); __asm__ volatile("bswap %k0" : "=r"(in_bits) : "0"(in_bits));