lzms_decompress.c: pack states together in struct lzms_decompressor
authorEric Biggers <ebiggers3@gmail.com>
Fri, 7 Aug 2015 02:55:48 +0000 (21:55 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 7 Aug 2015 03:24:21 +0000 (22:24 -0500)
src/lzms_decompress.c

index 2f0fd0bb84a442ff3a7e3d7cbf95a825344fcecb..bafe85ee35f5786eaed25fa5194aea1f649ab7a4 100644 (file)
@@ -335,22 +335,18 @@ struct lzms_decompressor {
        /* States and probability entries for item type disambiguation  */
 
        u32 main_state;
-       struct lzms_probability_entry main_probs[LZMS_NUM_MAIN_PROBS];
-
        u32 match_state;
-       struct lzms_probability_entry match_probs[LZMS_NUM_MATCH_PROBS];
-
        u32 lz_state;
-       struct lzms_probability_entry lz_probs[LZMS_NUM_LZ_PROBS];
-
        u32 delta_state;
-       struct lzms_probability_entry delta_probs[LZMS_NUM_DELTA_PROBS];
-
        u32 lz_rep_states[LZMS_NUM_LZ_REP_DECISIONS];
+       u32 delta_rep_states[LZMS_NUM_DELTA_REP_DECISIONS];
+
+       struct lzms_probability_entry main_probs[LZMS_NUM_MAIN_PROBS];
+       struct lzms_probability_entry match_probs[LZMS_NUM_MATCH_PROBS];
+       struct lzms_probability_entry lz_probs[LZMS_NUM_LZ_PROBS];
+       struct lzms_probability_entry delta_probs[LZMS_NUM_DELTA_PROBS];
        struct lzms_probability_entry lz_rep_probs[LZMS_NUM_LZ_REP_DECISIONS]
                                                  [LZMS_NUM_LZ_REP_PROBS];
-
-       u32 delta_rep_states[LZMS_NUM_DELTA_REP_DECISIONS];
        struct lzms_probability_entry delta_rep_probs[LZMS_NUM_DELTA_REP_DECISIONS]
                                                     [LZMS_NUM_DELTA_REP_PROBS];