Lines Matching refs:TDEFL_PUT_BITS

1145 #define TDEFL_PUT_BITS(b, l) do { \  macro
1220 TDEFL_PUT_BITS(2, 2); in tdefl_start_dynamic_block()
1222 TDEFL_PUT_BITS(num_lit_codes - 257, 5); in tdefl_start_dynamic_block()
1223 TDEFL_PUT_BITS(num_dist_codes - 1, 5); in tdefl_start_dynamic_block()
1226 num_bit_lengths = MZ_MAX(4, (num_bit_lengths + 1)); TDEFL_PUT_BITS(num_bit_lengths - 4, 4); in tdefl_start_dynamic_block()
1227 …for (i = 0; (int)i < num_bit_lengths; i++) TDEFL_PUT_BITS(d->m_huff_code_sizes[2][s_tdefl_packed_c… in tdefl_start_dynamic_block()
1232 TDEFL_PUT_BITS(d->m_huff_codes[2][code], d->m_huff_code_sizes[2][code]); in tdefl_start_dynamic_block()
1233 …if (code >= 16) TDEFL_PUT_BITS(packed_code_sizes[packed_code_sizes_index++], "\02\03\07"[code - 16… in tdefl_start_dynamic_block()
1252 TDEFL_PUT_BITS(1, 2); in tdefl_start_static_block()
1337 TDEFL_PUT_BITS((mz_uint)bit_buffer & mz_bitmasks[n], n); in tdefl_compress_lz_codes()
1342 TDEFL_PUT_BITS(d->m_huff_codes[0][256], d->m_huff_code_sizes[0][256]); in tdefl_compress_lz_codes()
1363TDEFL_PUT_BITS(d->m_huff_codes[0][s_tdefl_len_sym[match_len]], d->m_huff_code_sizes[0][s_tdefl_len… in tdefl_compress_lz_codes()
1364TDEFL_PUT_BITS(match_len & mz_bitmasks[s_tdefl_len_extra[match_len]], s_tdefl_len_extra[match_len]… in tdefl_compress_lz_codes()
1375 TDEFL_PUT_BITS(d->m_huff_codes[1][sym], d->m_huff_code_sizes[1][sym]); in tdefl_compress_lz_codes()
1376 TDEFL_PUT_BITS(match_dist & mz_bitmasks[num_extra_bits], num_extra_bits); in tdefl_compress_lz_codes()
1382 TDEFL_PUT_BITS(d->m_huff_codes[0][lit], d->m_huff_code_sizes[0][lit]); in tdefl_compress_lz_codes()
1386 TDEFL_PUT_BITS(d->m_huff_codes[0][256], d->m_huff_code_sizes[0][256]); in tdefl_compress_lz_codes()
1421 TDEFL_PUT_BITS(0x78, 8); TDEFL_PUT_BITS(0x01, 8); in tdefl_flush_block()
1424 TDEFL_PUT_BITS(flush == TDEFL_FINISH, 1); in tdefl_flush_block()
1436 TDEFL_PUT_BITS(0, 2); in tdefl_flush_block()
1437 if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } in tdefl_flush_block()
1440 TDEFL_PUT_BITS(d->m_total_lz_bytes & 0xFFFF, 16); in tdefl_flush_block()
1444 TDEFL_PUT_BITS(d->m_dict[(d->m_lz_code_buf_dict_pos + i) & TDEFL_LZ_DICT_SIZE_MASK], 8); in tdefl_flush_block()
1458 if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } in tdefl_flush_block()
1459 …LIB_HEADER) { mz_uint i, a = d->m_adler32; for (i = 0; i < 4; i++) { TDEFL_PUT_BITS((a >> 24) & 0x… in tdefl_flush_block()
1463 … i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i… in tdefl_flush_block()