diff options
Diffstat (limited to 'fs/jffs2/compr_rubin.c')
-rw-r--r-- | fs/jffs2/compr_rubin.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/fs/jffs2/compr_rubin.c b/fs/jffs2/compr_rubin.c index 1f3a4410523b..ea0431e047d5 100644 --- a/fs/jffs2/compr_rubin.c +++ b/fs/jffs2/compr_rubin.c | |||
@@ -21,16 +21,6 @@ | |||
21 | #define LOWER_BITS_RUBIN ((((long) 1)<<(RUBIN_REG_SIZE-1))-1) | 21 | #define LOWER_BITS_RUBIN ((((long) 1)<<(RUBIN_REG_SIZE-1))-1) |
22 | 22 | ||
23 | 23 | ||
24 | struct rubin_state { | ||
25 | unsigned long p; | ||
26 | unsigned long q; | ||
27 | unsigned long rec_q; | ||
28 | long bit_number; | ||
29 | struct pushpull pp; | ||
30 | int bit_divider; | ||
31 | int bits[8]; | ||
32 | }; | ||
33 | |||
34 | #define BIT_DIVIDER_MIPS 1043 | 24 | #define BIT_DIVIDER_MIPS 1043 |
35 | static int bits_mips[8] = { 277,249,290,267,229,341,212,241}; /* mips32 */ | 25 | static int bits_mips[8] = { 277,249,290,267,229,341,212,241}; /* mips32 */ |
36 | 26 | ||
@@ -43,6 +33,15 @@ struct pushpull { | |||
43 | unsigned int reserve; | 33 | unsigned int reserve; |
44 | }; | 34 | }; |
45 | 35 | ||
36 | struct rubin_state { | ||
37 | unsigned long p; | ||
38 | unsigned long q; | ||
39 | unsigned long rec_q; | ||
40 | long bit_number; | ||
41 | struct pushpull pp; | ||
42 | int bit_divider; | ||
43 | int bits[8]; | ||
44 | }; | ||
46 | 45 | ||
47 | static inline void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve) | 46 | static inline void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve) |
48 | { | 47 | { |