Lines Matching refs:bi_valid
236 int bi_valid; member
316 if (s->bi_valid == 16) { in bi_flush()
319 s->bi_valid = 0; in bi_flush()
320 } else if (s->bi_valid >= 8) { in bi_flush()
323 s->bi_valid -= 8; in bi_flush()
332 if (s->bi_valid > 8) { in bi_windup()
334 } else if (s->bi_valid > 0) { in bi_windup()
338 s->bi_valid = 0; in bi_windup()
377 if (s->bi_valid > (int)Buf_size - length) { in send_bits()
378 s->bi_buf |= (value << s->bi_valid); in send_bits()
380 s->bi_buf = (ush)value >> (Buf_size - s->bi_valid); in send_bits()
381 s->bi_valid += length - Buf_size; in send_bits()
383 s->bi_buf |= value << s->bi_valid; in send_bits()
384 s->bi_valid += length; in send_bits()
391 if (s->bi_valid > (int)Buf_size - len) {\
393 s->bi_buf |= (val << s->bi_valid);\
395 s->bi_buf = (ush)val >> (Buf_size - s->bi_valid);\
396 s->bi_valid += len - Buf_size;\
398 s->bi_buf |= (value) << s->bi_valid;\
399 s->bi_valid += len;\