Lines Matching refs:b

83 static inline int bcj_x86_test_msbyte(uint8_t b)  in bcj_x86_test_msbyte()  argument
85 return b == 0x00 || b == 0xFF; in bcj_x86_test_msbyte()
101 uint8_t b; in bcj_x86() local
117 b = buf[i + 4 - mask_to_bit_num[prev_mask]]; in bcj_x86()
119 || bcj_x86_test_msbyte(b)) { in bcj_x86()
137 b = (uint8_t)(dest >> (24 - j)); in bcj_x86()
138 if (!bcj_x86_test_msbyte(b)) in bcj_x86()
399 static void bcj_flush(struct xz_dec_bcj *s, struct xz_buf *b) in bcj_flush() argument
403 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush()
404 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush()
405 b->out_pos += copy_size; in bcj_flush()
419 struct xz_buf *b) in xz_dec_bcj_run() argument
429 bcj_flush(s, b); in xz_dec_bcj_run()
449 if (s->temp.size < b->out_size - b->out_pos || s->temp.size == 0) { in xz_dec_bcj_run()
450 out_start = b->out_pos; in xz_dec_bcj_run()
451 memcpy(b->out + b->out_pos, s->temp.buf, s->temp.size); in xz_dec_bcj_run()
452 b->out_pos += s->temp.size; in xz_dec_bcj_run()
454 s->ret = xz_dec_lzma2_run(lzma2, b); in xz_dec_bcj_run()
459 bcj_apply(s, b->out, &out_start, b->out_pos); in xz_dec_bcj_run()
469 s->temp.size = b->out_pos - out_start; in xz_dec_bcj_run()
470 b->out_pos -= s->temp.size; in xz_dec_bcj_run()
471 memcpy(s->temp.buf, b->out + b->out_pos, s->temp.size); in xz_dec_bcj_run()
478 if (b->out_pos + s->temp.size < b->out_size) in xz_dec_bcj_run()
490 if (b->out_pos < b->out_size) { in xz_dec_bcj_run()
492 s->out = b->out; in xz_dec_bcj_run()
493 s->out_pos = b->out_pos; in xz_dec_bcj_run()
494 s->out_size = b->out_size; in xz_dec_bcj_run()
495 b->out = s->temp.buf; in xz_dec_bcj_run()
496 b->out_pos = s->temp.size; in xz_dec_bcj_run()
497 b->out_size = sizeof(s->temp.buf); in xz_dec_bcj_run()
499 s->ret = xz_dec_lzma2_run(lzma2, b); in xz_dec_bcj_run()
501 s->temp.size = b->out_pos; in xz_dec_bcj_run()
502 b->out = s->out; in xz_dec_bcj_run()
503 b->out_pos = s->out_pos; in xz_dec_bcj_run()
504 b->out_size = s->out_size; in xz_dec_bcj_run()
519 bcj_flush(s, b); in xz_dec_bcj_run()