• Home
  • Raw
  • Download

Lines Matching refs:FLAC__BITS_PER_WORD

58 #define FLAC__BITS_PER_WORD 32  macro
94 static const unsigned FLAC__BITREADER_DEFAULT_CAPACITY = 65536u / FLAC__BITS_PER_WORD; /* in words …
200 for( ; br->crc16_align < FLAC__BITS_PER_WORD; br->crc16_align += 8) in crc16_update_word_()
201 …crc = FLAC__CRC16_UPDATE((unsigned)((word >> (FLAC__BITS_PER_WORD-8-br->crc16_align)) & 0xff), crc… in crc16_update_word_()
375 for(j = 0; j < FLAC__BITS_PER_WORD; j++) in FLAC__bitreader_dump()
379 fprintf(out, "%01u", br->buffer[i] & (1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0); in FLAC__bitreader_dump()
415 …br->read_crc16 = FLAC__CRC16_UPDATE((unsigned)((tail >> (FLAC__BITS_PER_WORD-8-br->crc16_align)) &… in FLAC__bitreader_get_read_crc16()
432 return (br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits; in FLAC__bitreader_get_input_bits_unconsumed()
441 FLAC__ASSERT((br->capacity*FLAC__BITS_PER_WORD) * 2 >= bits); in FLAC__bitreader_read_raw_uint32()
445 FLAC__ASSERT(FLAC__BITS_PER_WORD >= 32); in FLAC__bitreader_read_raw_uint32()
452 …while((br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits < bits)… in FLAC__bitreader_read_raw_uint32()
460 const unsigned n = FLAC__BITS_PER_WORD - br->consumed_bits; in FLAC__bitreader_read_raw_uint32()
474 *val |= (br->buffer[br->consumed_words] >> (FLAC__BITS_PER_WORD-bits)); in FLAC__bitreader_read_raw_uint32()
481 if(bits < FLAC__BITS_PER_WORD) { in FLAC__bitreader_read_raw_uint32()
482 *val = word >> (FLAC__BITS_PER_WORD-bits); in FLAC__bitreader_read_raw_uint32()
502 …>consumed_words] & (FLAC__WORD_ALL_ONES >> br->consumed_bits)) >> (FLAC__BITS_PER_WORD-br->consume… in FLAC__bitreader_read_raw_uint32()
507 *val = br->buffer[br->consumed_words] >> (FLAC__BITS_PER_WORD-bits); in FLAC__bitreader_read_raw_uint32()
732 …if(br->consumed_bits >= FLAC__BITS_PER_WORD) { /* faster way of testing if(br->consumed_bits == FL…
740 *val += FLAC__BITS_PER_WORD - br->consumed_bits;
756 …brword b = (br->buffer[br->consumed_words] & (FLAC__WORD_ALL_ONES << (FLAC__BITS_PER_WORD-end))) <…
762 FLAC__ASSERT(br->consumed_bits < FLAC__BITS_PER_WORD);
768 FLAC__ASSERT(br->consumed_bits < FLAC__BITS_PER_WORD);
824 FLAC__ASSERT(FLAC__BITS_PER_WORD >= 32); in FLAC__bitreader_read_rice_signed_block()
841 …er allocation... */ && defined FLAC__CPU_IA32 && !defined FLAC__NO_ASM && FLAC__BITS_PER_WORD == 32 in FLAC__bitreader_read_rice_signed_block()
855 if(cbits == FLAC__BITS_PER_WORD) { in FLAC__bitreader_read_rice_signed_block()
863 uval += FLAC__BITS_PER_WORD - cbits; in FLAC__bitreader_read_rice_signed_block()
879 brword b = (br->buffer[cwords] & (FLAC__WORD_ALL_ONES << (FLAC__BITS_PER_WORD-end))) << cbits; in FLAC__bitreader_read_rice_signed_block()
886 FLAC__ASSERT(cbits < FLAC__BITS_PER_WORD); in FLAC__bitreader_read_rice_signed_block()
892 FLAC__ASSERT(cbits < FLAC__BITS_PER_WORD); in FLAC__bitreader_read_rice_signed_block()
911 while((br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits < bits) { in FLAC__bitreader_read_rice_signed_block()
925 const unsigned n = FLAC__BITS_PER_WORD - cbits; in FLAC__bitreader_read_rice_signed_block()
941 uval |= (br->buffer[cwords] >> (FLAC__BITS_PER_WORD-bits)); in FLAC__bitreader_read_rice_signed_block()
947 FLAC__ASSERT(bits < FLAC__BITS_PER_WORD); in FLAC__bitreader_read_rice_signed_block()
949 uval |= br->buffer[cwords] >> (FLAC__BITS_PER_WORD-bits); in FLAC__bitreader_read_rice_signed_block()
963 … uval |= (br->buffer[cwords] & (FLAC__WORD_ALL_ONES >> cbits)) >> (FLAC__BITS_PER_WORD-cbits-bits); in FLAC__bitreader_read_rice_signed_block()
968 uval |= br->buffer[cwords] >> (FLAC__BITS_PER_WORD-bits); in FLAC__bitreader_read_rice_signed_block()
1006 FLAC__ASSERT(FLAC__BITS_PER_WORD >= 32);
1015 ucbits = (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits;
1024 …faster... */ && defined FLAC__CPU_IA32 && !defined FLAC__NO_ASM && FLAC__BITS_PER_WORD == 32 && de…
1038 if(cbits >= FLAC__BITS_PER_WORD) { /* faster way of testing if(cbits == FLAC__BITS_PER_WORD) */
1046 uval += FLAC__BITS_PER_WORD - cbits;
1068 FLAC__ASSERT(cbits < FLAC__BITS_PER_WORD);
1074 FLAC__ASSERT(cbits < FLAC__BITS_PER_WORD);
1087 ucbits = (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits + uval;
1111 ucbits = (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits;
1116 const unsigned n = FLAC__BITS_PER_WORD - cbits;
1131 uval |= (br->buffer[cwords] >> (FLAC__BITS_PER_WORD-cbits));
1138 uval |= br->buffer[cwords] >> (FLAC__BITS_PER_WORD-cbits);
1150 …uval |= (br->buffer[cwords] & (FLAC__WORD_ALL_ONES >> cbits)) >> (FLAC__BITS_PER_WORD-cbits-parame…
1155 uval |= br->buffer[cwords] >> (FLAC__BITS_PER_WORD-cbits);