Lines Matching defs:cst
348 struct cstate *cst, uint16_t *p,
359 if (cst->state >= LZMA_NUM_LIT_STATES) {
360 int match_byte = peek_old_byte(wr, cst->rep0);
381 if (cst->state < 4)
382 cst->state = 0;
383 else if (cst->state < 10)
384 cst->state -= 3;
386 cst->state -= 6;
392 struct cstate *cst, uint16_t *p,
400 prob = p + LZMA_IS_REP + cst->state;
403 cst->rep3 = cst->rep2;
404 cst->rep2 = cst->rep1;
405 cst->rep1 = cst->rep0;
406 cst->state = cst->state < LZMA_NUM_LIT_STATES ? 0 : 3;
410 prob = p + LZMA_IS_REP_G0 + cst->state;
414 + (cst->state <<
420 cst->state = cst->state < LZMA_NUM_LIT_STATES ?
422 return copy_byte(wr, cst->rep0);
430 prob = p + LZMA_IS_REP_G1 + cst->state;
433 distance = cst->rep1;
436 prob = p + LZMA_IS_REP_G2 + cst->state;
439 distance = cst->rep2;
442 distance = cst->rep3;
443 cst->rep3 = cst->rep2;
445 cst->rep2 = cst->rep1;
447 cst->rep1 = cst->rep0;
448 cst->rep0 = distance;
450 cst->state = cst->state < LZMA_NUM_LIT_STATES ? 8 : 11;
484 if (cst->state < 4) {
487 cst->state += LZMA_NUM_LIT_STATES;
500 cst->rep0 = 2 | (pos_slot & 1);
502 cst->rep0 <<= num_bits;
504 cst->rep0 - pos_slot - 1;
508 cst->rep0 = (cst->rep0 << 1) |
511 cst->rep0 <<= LZMA_NUM_ALIGN_BITS;
518 cst->rep0 |= i;
522 cst->rep0 = pos_slot;
523 if (++(cst->rep0) == 0)
525 if (cst->rep0 > wr->header->dict_size
526 || cst->rep0 > get_pos(wr))
532 return copy_bytes(wr, cst->rep0, len);
554 struct cstate cst;
569 cst.state = 0;
570 cst.rep0 = cst.rep1 = cst.rep2 = cst.rep3 = 1;
634 (cst.state << LZMA_NUM_POS_BITS_MAX) + pos_state;
636 if (process_bit0(&wr, &rc, &cst, p, pos_state, prob,
642 if (process_bit1(&wr, &rc, &cst, p, pos_state, prob)) {
646 if (cst.rep0 == 0)