diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /archival/libunarchive | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index c698763d3..ead628ed5 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
@@ -182,39 +182,39 @@ static state_t* alloc_state(void) | |||
182 | #endif | 182 | #endif |
183 | 183 | ||
184 | 184 | ||
185 | static const unsigned short mask_bits[] = { | 185 | static const unsigned short mask_bits[] ALIGN2 = { |
186 | 0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, | 186 | 0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, |
187 | 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff | 187 | 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff |
188 | }; | 188 | }; |
189 | 189 | ||
190 | /* Copy lengths for literal codes 257..285 */ | 190 | /* Copy lengths for literal codes 257..285 */ |
191 | static const unsigned short cplens[] = { | 191 | static const unsigned short cplens[] ALIGN2 = { |
192 | 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, | 192 | 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, |
193 | 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0 | 193 | 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0 |
194 | }; | 194 | }; |
195 | 195 | ||
196 | /* note: see note #13 above about the 258 in this list. */ | 196 | /* note: see note #13 above about the 258 in this list. */ |
197 | /* Extra bits for literal codes 257..285 */ | 197 | /* Extra bits for literal codes 257..285 */ |
198 | static const unsigned char cplext[] = { | 198 | static const unsigned char cplext[] ALIGN1 = { |
199 | 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, | 199 | 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, |
200 | 5, 5, 5, 0, 99, 99 | 200 | 5, 5, 5, 0, 99, 99 |
201 | }; /* 99 == invalid */ | 201 | }; /* 99 == invalid */ |
202 | 202 | ||
203 | /* Copy offsets for distance codes 0..29 */ | 203 | /* Copy offsets for distance codes 0..29 */ |
204 | static const unsigned short cpdist[] = { | 204 | static const unsigned short cpdist[] ALIGN2 = { |
205 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, | 205 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, |
206 | 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577 | 206 | 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577 |
207 | }; | 207 | }; |
208 | 208 | ||
209 | /* Extra bits for distance codes */ | 209 | /* Extra bits for distance codes */ |
210 | static const unsigned char cpdext[] = { | 210 | static const unsigned char cpdext[] ALIGN1 = { |
211 | 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, | 211 | 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, |
212 | 11, 11, 12, 12, 13, 13 | 212 | 11, 11, 12, 12, 13, 13 |
213 | }; | 213 | }; |
214 | 214 | ||
215 | /* Tables for deflate from PKZIP's appnote.txt. */ | 215 | /* Tables for deflate from PKZIP's appnote.txt. */ |
216 | /* Order of the bit length code lengths */ | 216 | /* Order of the bit length code lengths */ |
217 | static const unsigned char border[] = { | 217 | static const unsigned char border[] ALIGN1 = { |
218 | 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 | 218 | 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 |
219 | }; | 219 | }; |
220 | 220 | ||