Searched refs:FLAC__BITS_PER_WORD (Results 1 – 3 of 3) sorted by relevance
/external/flac/libFLAC/ |
D | bitreader.c | 52 #define FLAC__BITS_PER_WORD (8 * FLAC__BYTES_PER_WORD) macro 75 static const unsigned FLAC__BITREADER_DEFAULT_CAPACITY = 65536u / FLAC__BITS_PER_WORD; /* in words … 114 for( ; br->crc16_align < FLAC__BITS_PER_WORD; br->crc16_align += 8) in crc16_update_word_() 115 …crc = FLAC__CRC16_UPDATE((unsigned)((word >> (FLAC__BITS_PER_WORD-8-br->crc16_align)) & 0xff), crc… in crc16_update_word_() 280 for(j = 0; j < FLAC__BITS_PER_WORD; j++) in FLAC__bitreader_dump() 284 fprintf(out, "%01u", br->buffer[i] & (1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0); in FLAC__bitreader_dump() 320 …br->read_crc16 = FLAC__CRC16_UPDATE((unsigned)((tail >> (FLAC__BITS_PER_WORD-8-br->crc16_align)) &… in FLAC__bitreader_get_read_crc16() 337 return (br->words-br->consumed_words)*FLAC__BITS_PER_WORD + br->bytes*8 - br->consumed_bits; in FLAC__bitreader_get_input_bits_unconsumed() 346 FLAC__ASSERT((br->capacity*FLAC__BITS_PER_WORD) * 2 >= bits); in FLAC__bitreader_read_raw_uint32() 350 FLAC__ASSERT(FLAC__BITS_PER_WORD >= 32); in FLAC__bitreader_read_raw_uint32() [all …]
|
D | bitwriter.c | 51 #define FLAC__BITS_PER_WORD 32 macro 70 #define FLAC__WORDS_TO_BITS(words) ((words) * FLAC__BITS_PER_WORD) 94 …ew_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WOR… in bitwriter_grow_() 108 …w_capacity >= bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WOR… in bitwriter_grow_() 186 for(j = 0; j < FLAC__BITS_PER_WORD; j++) in FLAC__bitwriter_dump() 187 fprintf(out, "%01u", bw->buffer[i] & (1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0); in FLAC__bitwriter_dump() 248 if(bw->words == bw->capacity && !bitwriter_grow_(bw, FLAC__BITS_PER_WORD)) in FLAC__bitwriter_get_buffer() 251 bw->buffer[bw->words] = SWAP_BE_WORD_TO_HOST(bw->accum << (FLAC__BITS_PER_WORD-bw->bits)); in FLAC__bitwriter_get_buffer() 281 n = flac_min(FLAC__BITS_PER_WORD - bw->bits, bits); in FLAC__bitwriter_write_zeroes() 285 if(bw->bits == FLAC__BITS_PER_WORD) { in FLAC__bitwriter_write_zeroes() [all …]
|
/external/flac/libFLAC/ia32/ |
D | bitreader_asm.nasm | 56 ;ASSERT(FLAC__BITS_PER_WORD == 32); 98 ; ucbits = (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits; 103 shl eax, 3 ; eax <- (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 104 sub eax, ecx ; eax <- (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits 134 …near .break1 ; if(cbits >= FLAC__BITS_PER_WORD) { /* faster way of testing if(cbits == F… 210 sub edi, ecx ; uval += FLAC__BITS_PER_WORD - cbits; 323 ; ucbits = (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits; 328 shl ebx, 3 ; ebx <- (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 329 sub ebx, ecx ; ebx <- (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits 330 add ebx, edi ; ebx <- (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits + uval [all …]
|