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 2f0fd0b..bafe85e 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];