Home | History | Annotate | Download | only in xz

Lines Matching refs:state

23  * Maximum number of position states. A position state is the lowest pb
60 /* The lowest 7 states indicate that the previous state was a literal. */
64 static inline void lzma_state_literal(enum lzma_state *state)
66 if (*state <= STATE_SHORTREP_LIT_LIT)
67 *state = STATE_LIT_LIT;
68 else if (*state <= STATE_LIT_SHORTREP)
69 *state -= 3;
71 *state -= 6;
75 static inline void lzma_state_match(enum lzma_state *state)
77 *state = *state < LIT_STATES ? STATE_LIT_MATCH : STATE_NONLIT_MATCH;
80 /* Indicate that the latest state was a long repeated match. */
81 static inline void lzma_state_long_rep(enum lzma_state *state)
83 *state = *state < LIT_STATES ? STATE_LIT_LONGREP : STATE_NONLIT_REP;
87 static inline void lzma_state_short_rep(enum lzma_state *state)
89 *state = *state < LIT_STATES ? STATE_LIT_SHORTREP : STATE_NONLIT_REP;
93 static inline bool lzma_state_is_literal(enum lzma_state state)
95 return state < LIT_STATES;