comparison src/dmzlib.c @ 1612:749f8f808531

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 15 May 2018 12:00:43 +0300
parents 848a88ce7a57
children 36edd316184a
comparison
equal deleted inserted replaced
1611:3571d4670964 1612:749f8f808531
284 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0 284 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0
285 }; 285 };
286 286
287 static const int dm_zlib_length_extra[31] = 287 static const int dm_zlib_length_extra[31] =
288 { 288 {
289 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 289 0, 0, 0, 0, 0, 0, 0, 0,
290 5, 5, 5, 5, 0, 0, 0 290 1, 1, 1, 1,
291 2, 2, 2, 2,
292 3, 3, 3, 3,
293 4, 4, 4, 4,
294 5, 5, 5, 5,
295 0, 0, 0
291 }; 296 };
292 297
293 static const int dm_zlib_dist_base[32] = 298 static const int dm_zlib_dist_base[32] =
294 { 299 {
295 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 300 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
296 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 301 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193,
297 16385, 24577, 0, 0 302 12289, 16385, 24577, 0, 0
298 }; 303 };
299 304
300 static const int dm_zlib_dist_extra[32] = 305 static const int dm_zlib_dist_extra[32] =
301 { 306 {
302 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 307 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,
303 10, 11, 11, 12, 12, 13, 13 308 9, 9, 10, 10, 11, 11, 12, 12, 13, 13
304 }; 309 };
305 310
306 311
307 static int dmZLibParseHuffmanBlock(DMZLibContext * ctx) 312 static int dmZLibParseHuffmanBlock(DMZLibContext * ctx)
308 { 313 {