Lines Matching defs:accum
75 uint32_t accum; /* accumulator; bits are right-justified; when full, accum is appended to buffer */
78 unsigned bits; /* # of used bits in accum */
193 fprintf(out, "%01u", bw->accum & (1 << (bw->bits-j-1)) ? 1:0);
250 /* append bits as complete word to buffer, but don't change bw->accum or bw->bits */
251 bw->buffer[bw->words] = SWAP_BE_WORD_TO_HOST(bw->accum << (FLAC__BITS_PER_WORD-bw->bits));
282 bw->accum <<= n;
286 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum);
299 bw->accum = 0;
325 bw->accum <<= bits;
326 bw->accum |= val;
329 else if(bw->bits) { /* WATCHOUT: if bw->bits == 0, left==FLAC__BITS_PER_WORD and bw->accum<<=left is a NOP instead of setting to 0 */
330 bw->accum <<= left;
331 bw->accum |= val >> (bw->bits = bits - left);
332 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum);
333 bw->accum = val;
336 bw->accum = val;
534 bw->accum <<= msbits + lsbits;
535 bw->accum |= uval;
548 bw->accum <<= msbits;
553 bw->accum <<= left;
555 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum);
566 bw->accum = 0;
576 bw->accum <<= lsbits;
577 bw->accum |= uval;
587 bw->accum <<= left;
588 bw->accum |= uval >> (bw->bits = lsbits - left);
589 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum);
590 bw->accum = uval;