Lines Matching refs:TOTAL_BITS
61 #define TOTAL_BITS(bw) (WORDS_TO_BITS((bw)->words) + (bw)->bits) macro
260 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0; in test_bitwriter()
270 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0x7F; in test_bitwriter()
280 ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xC280; in test_bitwriter()
290 ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xDFBF; in test_bitwriter()
300 ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xE0A080; in test_bitwriter()
310 ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xEFBFBF; in test_bitwriter()
322 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF0908080; in test_bitwriter()
324 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0x808090F0; in test_bitwriter()
327 ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF0908080; in test_bitwriter()
340 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF7BFBFBF; in test_bitwriter()
342 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xBFBFBFF7; in test_bitwriter()
345 ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF7BFBFBF; in test_bitwriter()
358 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xF8888080 && (bw->accum & 0xff) == 0x80; in test_bitwriter()
360 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0x808088F8 && (bw->accum & 0xff) == 0x80; in test_bitwriter()
363 ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xF888808080); in test_bitwriter()
376 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xFBBFBFBF && (bw->accum & 0xff) == 0xBF; in test_bitwriter()
378 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xBFBFBFFB && (bw->accum & 0xff) == 0xBF; in test_bitwriter()
381 ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xFBBFBFBFBF); in test_bitwriter()
394 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFC848080 && (bw->accum & 0xffff) == 0x8080; in test_bitwriter()
396 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0x808084FC && (bw->accum & 0xffff) == 0x8080; in test_bitwriter()
399 …ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFC8480808080… in test_bitwriter()
412 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFDBFBFBF && (bw->accum & 0xffff) == 0xBFBF; in test_bitwriter()
414 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xBFBFBFFD && (bw->accum & 0xffff) == 0xBFBF; in test_bitwriter()
417 …ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFDBFBFBFBFBF… in test_bitwriter()
428 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0; in test_bitwriter()
438 ok = TOTAL_BITS(bw) == 8 && (bw->accum & 0xff) == 0x7F; in test_bitwriter()
448 ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xC280; in test_bitwriter()
458 ok = TOTAL_BITS(bw) == 16 && (bw->accum & 0xffff) == 0xDFBF; in test_bitwriter()
468 ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xE0A080; in test_bitwriter()
478 ok = TOTAL_BITS(bw) == 24 && (bw->accum & 0xffffff) == 0xEFBFBF; in test_bitwriter()
490 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF0908080; in test_bitwriter()
492 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0x808090F0; in test_bitwriter()
495 ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF0908080; in test_bitwriter()
508 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xF7BFBFBF; in test_bitwriter()
510 ok = TOTAL_BITS(bw) == 32 && bw->buffer[0] == 0xBFBFBFF7; in test_bitwriter()
513 ok = TOTAL_BITS(bw) == 32 && (bw->accum & 0xffffffff) == 0xF7BFBFBF; in test_bitwriter()
526 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xF8888080 && (bw->accum & 0xff) == 0x80; in test_bitwriter()
528 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0x808088F8 && (bw->accum & 0xff) == 0x80; in test_bitwriter()
531 ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xF888808080); in test_bitwriter()
544 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xFBBFBFBF && (bw->accum & 0xff) == 0xBF; in test_bitwriter()
546 ok = TOTAL_BITS(bw) == 40 && bw->buffer[0] == 0xBFBFBFFB && (bw->accum & 0xff) == 0xBF; in test_bitwriter()
549 ok = TOTAL_BITS(bw) == 40 && (bw->accum & FLAC__U64L(0xffffffffff)) == FLAC__U64L(0xFBBFBFBFBF); in test_bitwriter()
562 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFC848080 && (bw->accum & 0xffff) == 0x8080; in test_bitwriter()
564 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0x808084FC && (bw->accum & 0xffff) == 0x8080; in test_bitwriter()
567 …ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFC8480808080… in test_bitwriter()
580 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xFDBFBFBF && (bw->accum & 0xffff) == 0xBFBF; in test_bitwriter()
582 ok = TOTAL_BITS(bw) == 48 && bw->buffer[0] == 0xBFBFBFFD && (bw->accum & 0xffff) == 0xBFBF; in test_bitwriter()
585 …ok = TOTAL_BITS(bw) == 48 && (bw->accum & FLAC__U64L(0xffffffffffff)) == FLAC__U64L(0xFDBFBFBFBFBF… in test_bitwriter()
598 ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0xFE828080 && (bw->accum & 0xffffff) == 0x808080; in test_bitwriter()
600 ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0x808082FE && (bw->accum & 0xffffff) == 0x808080; in test_bitwriter()
603 …ok = TOTAL_BITS(bw) == 56 && (bw->accum & FLAC__U64L(0xffffffffffffff)) == FLAC__U64L(0xFE82808080… in test_bitwriter()
616 ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0xFEBFBFBF && (bw->accum & 0xffffff) == 0xBFBFBF; in test_bitwriter()
618 ok = TOTAL_BITS(bw) == 56 && bw->buffer[0] == 0xBFBFBFFE && (bw->accum & 0xffffff) == 0xBFBFBF; in test_bitwriter()
621 …ok = TOTAL_BITS(bw) == 56 && (bw->accum & FLAC__U64L(0xffffffffffffff)) == FLAC__U64L(0xFEBFBFBFBF… in test_bitwriter()
637 ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == 0x5aaaaaaa && (bw->accum & 0xf) == 0xa; in test_bitwriter()
639 ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == 0xaaaaaa5a && (bw->accum & 0xf) == 0xa; in test_bitwriter()
643 …ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == FLAC__U64L(0x5aaaaaaaaaaaaaaa) && (bw->accum & 0… in test_bitwriter()
645 …ok = TOTAL_BITS(bw) == i*32+4 && bw->buffer[0] == FLAC__U64L(0xaaaaaaaaaaaaaa5a) && (bw->accum & 0… in test_bitwriter()