Lines Matching refs:bit_offset
103 int bit_offset; member
188 state->bit_offset = 0; in archive_compressor_compress_open()
249 int bits, ret, clear_flg, bit_offset; in output_code() local
257 bit_offset = state->bit_offset % 8; in output_code()
258 state->bit_buf |= (ocode << bit_offset) & 0xff; in output_code()
261 bits = state->code_len - (8 - bit_offset); in output_code()
262 ocode >>= 8 - bit_offset; in output_code()
270 state->bit_offset += state->code_len; in output_code()
272 if (state->bit_offset == state->code_len * 8) in output_code()
273 state->bit_offset = 0; in output_code()
284 if (state->bit_offset > 0) { in output_code()
285 while (state->bit_offset < state->code_len * 8) { in output_code()
289 state->bit_offset += 8; in output_code()
294 state->bit_offset = 0; in output_code()
318 if (state->bit_offset % 8) { in output_flush()
319 state->code_len = (state->bit_offset % 8 + 7) / 8; in output_flush()