Lines Matching refs:uInt
246 extern void zmemcpy(Bytef* dest, const Bytef* source, uInt len);
247 extern int zmemcmp(const Bytef* s1, const Bytef* s2, uInt len);
248 extern void zmemzero(Bytef* dest, uInt len);
273 uInt len);
382 uInt w_size; /* LZ77 window size (32K by default) */
383 uInt w_bits; /* log2(w_size) (8..16) */
384 uInt w_mask; /* w_size - 1 */
409 uInt ins_h; /* hash index of string to be inserted */
410 uInt hash_size; /* number of elements in hash table */
411 uInt hash_bits; /* log2(hash_size) */
412 uInt hash_mask; /* hash_size-1 */
414 uInt hash_shift;
426 uInt match_length; /* length of best match */
429 uInt strstart; /* start of string to insert */
430 uInt match_start; /* start of matching string */
431 uInt lookahead; /* number of valid bytes ahead in window */
433 uInt prev_length;
438 uInt max_chain_length;
444 uInt max_lazy_match;
458 uInt good_match;
489 uInt lit_bufsize;
509 uInt last_lit; /* running index in l_buf */
519 uInt matches; /* number of string matches in current block */
690 local void putShortMSB(deflate_state *s, uInt b);
695 uInt longest_match(deflate_state *s, IPos cur_match);
697 local uInt longest_match(deflate_state *s, IPos cur_match);
900 uInt dictLength)
903 uInt length = dictLength;
904 uInt n;
1012 local void putShortMSB (deflate_state *s, uInt b) in putShortMSB()
1070 uInt header = (Z_DEFLATED + ((s->w_bits-8)<<4)) << 8; in deflate()
1071 uInt level_flags = (s->level-1) >> 1; in deflate()
1083 putShortMSB(s, (uInt)(strm->adler >> 16)); in deflate()
1084 putShortMSB(s, (uInt)(strm->adler & 0xffff)); in deflate()
1170 putShortMSB(s, (uInt)(strm->adler >> 16)); in deflate()
1171 putShortMSB(s, (uInt)(strm->adler & 0xffff)); in deflate()
1253 zmemcpy(ds->pending_buf, ss->pending_buf, (uInt)ds->pending_buf_size);
1350 local uInt longest_match(deflate_state *s, in longest_match()
1365 uInt wmask = s->w_mask; in longest_match()
1392 if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead; in longest_match()
1483 if ((uInt)best_len <= s->lookahead) return (uInt)best_len; in longest_match()
1491 local uInt longest_match(s, cur_match) in longest_match()
1589 uInt wsize = s->w_size; in fill_window()
1737 s->lookahead = (uInt)(s->strstart - max_start); in deflate_stored()
1738 s->strstart = (uInt)max_start; in deflate_stored()
1744 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) { in deflate_stored()
1910 uInt max_insert = s->strstart + s->lookahead - MIN_MATCH; in deflate_slow()
3334 uInt w); /* window size */ in _tr_flush_block()
3353 uInt n); /* dictionary length */ in _tr_flush_block()
3395 uInt method; /* if FLAGS, method byte */ in _tr_flush_block()
3400 uInt marker; /* if BAD, inflateSync's marker bytes count */ in _tr_flush_block()
3405 uInt wbits; /* log2(window size) (8..15, defaults to 15) */ in _tr_flush_block()
3475 z->state->wbits = (uInt)w; in _tr_flush_block()
3479 inflate_blocks_new(z, z->state->nowrap ? Z_NULL : adler32, (uInt)1 << w)) in _tr_flush_block()
3507 uInt b; in _tr_flush_block()
3649 uInt dictLength) in _tr_flush_block()
3651 uInt length = dictLength; in _tr_flush_block()
3659 if (length >= ((uInt)1<<z->state->wbits)) in _tr_flush_block()
3690 uInt n; /* number of bytes to look at */ in _tr_flush_block()
3692 uInt m; /* number of marker bytes found in a row */ in _tr_flush_block()
3792 uInt pad; /* pad structure to a power of 2 (4 bytes for */ in _tr_flush_block()
3794 uInt base; /* literal, length base, distance base, in _tr_flush_block()
3813 uInt, /* number of literal/length codes */ in _tr_flush_block()
3814 uInt, /* number of distance codes */ in _tr_flush_block()
3847 uInt, uInt, in _tr_flush_block()
3898 uInt left; /* if STORED, bytes left to copy */ in _tr_flush_block()
3900 uInt table; /* table lengths (14 bits) */ in _tr_flush_block()
3901 uInt index; /* index into blens (or border) */ in _tr_flush_block()
3903 uInt bb; /* bit length tree depth */ in _tr_flush_block()
3911 uInt last; /* true if this block is the last block */ in _tr_flush_block()
3914 uInt bitk; /* bits in bit buffer */ in _tr_flush_block()
3941 #define WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q) in _tr_flush_block()
3942 #define LOADOUT {q=s->write;m=(uInt)WAVAIL;} in _tr_flush_block()
3943 #define WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}} in _tr_flush_block()
3951 extern uInt inflate_mask[17]; in _tr_flush_block()
3975 local const uInt border[] = { /* Order of the bit length code lengths */ in _tr_flush_block()
4042 inflate_blocks_statef *inflate_blocks_new(z_streamp z, check_func c, uInt w) in _tr_flush_block()
4072 uInt t; /* temporary storage */ in _tr_flush_block()
4074 uInt k; /* bits in bit buffer */ in _tr_flush_block()
4076 uInt n; /* bytes available there */ in _tr_flush_block()
4078 uInt m; /* bytes to end of window or read pointer */ in _tr_flush_block()
4088 t = (uInt)b & 7; in _tr_flush_block()
4104 uInt bl, bd; in _tr_flush_block()
4141 s->sub.left = (uInt)b & 0xffff; in _tr_flush_block()
4165 s->sub.trees.table = t = (uInt)b & 0x3fff; in _tr_flush_block()
4176 if ((s->sub.trees.blens = (uIntf*)ZALLOC(z, t, sizeof(uInt))) == Z_NULL) in _tr_flush_block()
4189 s->sub.trees.blens[border[s->sub.trees.index++]] = (uInt)b & 7; in _tr_flush_block()
4215 uInt i, j, c; in _tr_flush_block()
4219 h = s->sub.trees.tb + ((uInt)b & inflate_mask[t]); in _tr_flush_block()
4233 j += (uInt)b & inflate_mask[i]; in _tr_flush_block()
4255 uInt bl, bd; in _tr_flush_block()
4267 if (t == (uInt)Z_DATA_ERROR) in _tr_flush_block()
4334 void inflate_set_dictionary(inflate_blocks_statef *s, const Bytef *d, uInt n) in _tr_flush_block()
4352 uInt k; /* bits in bit buffer */ /* NOT USED HERE */ in _tr_flush_block()
4353 uInt t; /* temporary storage */ in _tr_flush_block()
4355 uInt n; /* bytes available there */ in _tr_flush_block()
4357 uInt m; /* bytes to end of window or read pointer */ in _tr_flush_block()
4453 uInt, /* number of codes */ in _tr_flush_block()
4454 uInt, /* number of "simple" codes */ in _tr_flush_block()
4460 uInt *, /* hufts used in space */ in _tr_flush_block()
4464 local const uInt cplens[31] = { /* Copy lengths for literal codes 257..285 */ in _tr_flush_block()
4468 local const uInt cplext[31] = { /* Extra bits for literal codes 257..285 */ in _tr_flush_block()
4471 local const uInt cpdist[30] = { /* Copy offsets for distance codes 0..29 */ in _tr_flush_block()
4475 local const uInt cpdext[30] = { /* Extra bits for distance codes */ in _tr_flush_block()
4517 uInt n, /* number of codes (assumed <= 288) */ in _tr_flush_block()
4518 uInt s, /* number of simple-valued codes (0..s-1) */ in _tr_flush_block()
4524 uInt *hn, /* hufts used in space */ in _tr_flush_block()
4533 uInt a; /* counter for codes of length k */ in _tr_flush_block()
4534 uInt c[BMAX+1]; /* bit length count table */ in _tr_flush_block()
4535 uInt f; /* i repeats in table every f entries */ in _tr_flush_block()
4538 uInt i; /* counter, current code */ in _tr_flush_block()
4539 uInt j; /* counter */ in _tr_flush_block()
4542 uInt mask; /* (1 << w) - 1, to avoid cc -O bug on HP */ in _tr_flush_block()
4548 uInt x[BMAX+1]; /* bit offsets, then code stack */ in _tr_flush_block()
4551 uInt z; /* number of entries in current table */ in _tr_flush_block()
4579 if ((uInt)l < j) in _tr_flush_block()
4585 if ((uInt)l > i) in _tr_flush_block()
4640 z = z > (uInt)l ? l : z; /* table size upper limit */ in _tr_flush_block()
4668 r.base = (uInt)(q - u[h-1] - j); /* offset to this table */ in _tr_flush_block()
4726 uInt hn = 0; /* hufts used in space */ in _tr_flush_block()
4729 if ((v = (uIntf*)ZALLOC(z, 19, sizeof(uInt))) == Z_NULL) in _tr_flush_block()
4745 int inflate_trees_dynamic(uInt nl, in _tr_flush_block()
4746 uInt nd, /* number of literal/length codes */ in _tr_flush_block()
4756 uInt hn = 0; /* hufts used in space */ in _tr_flush_block()
4760 if ((v = (uIntf*)ZALLOC(z, 288, sizeof(uInt))) == Z_NULL) in _tr_flush_block()
4813 local uInt fixed_bl;
4814 local uInt fixed_bd;
4829 local uInt fixed_bl = 9;
4830 local uInt fixed_bd = 5;
4988 uInt f = 0; /* number of hufts used in fixed_mem */ in inflate_trees_fixed()
4993 if ((c = (uIntf*)ZALLOC(z, 288, sizeof(uInt))) == Z_NULL) in inflate_trees_fixed()
4995 if ((v = (uIntf*)ZALLOC(z, 288, sizeof(uInt))) == Z_NULL) in inflate_trees_fixed()
5061 uInt,
5062 uInt,
5093 uInt len;
5097 uInt need; /* bits needed */
5099 uInt lit; /* if LIT, literal */
5101 uInt get; /* bits to get for extra */
5102 uInt dist; /* distance back to copy from */
5115 inflate_codes_statef *inflate_codes_new(uInt bl, uInt bd, in inflate_codes_new()
5136 uInt j; /* temporary storage */ in inflate_codes()
5138 uInt e; /* extra bits or operation */ in inflate_codes()
5140 uInt k; /* bits in bit buffer */ in inflate_codes()
5142 uInt n; /* bytes available there */ in inflate_codes()
5144 uInt m; /* bytes to end of window or read pointer */ in inflate_codes()
5175 t = c->sub.code.tree + ((uInt)b & inflate_mask[j]); in inflate_codes()
5177 e = (uInt)(t->exop); in inflate_codes()
5213 c->len += (uInt)b & inflate_mask[j]; in inflate_codes()
5223 t = c->sub.code.tree + ((uInt)b & inflate_mask[j]); in inflate_codes()
5225 e = (uInt)(t->exop); in inflate_codes()
5246 c->sub.copy.dist += (uInt)b & inflate_mask[j]; in inflate_codes()
5324 uInt inflate_mask[17] = {
5334 uInt n; in inflate_flush()
5343 n = (uInt)((q <= s->write ? s->write : s->end) - q); in inflate_flush()
5371 n = (uInt)(s->write - q); in inflate_flush()
5431 int inflate_fast(uInt bl, uInt bd, in inflate_fast()
5438 uInt e; /* extra bits or operation */ in inflate_fast()
5440 uInt k; /* bits in bit buffer */ in inflate_fast()
5442 uInt n; /* bytes available there */ in inflate_fast()
5444 uInt m; /* bytes to end of window or read pointer */ in inflate_fast()
5445 uInt ml; /* mask for literal/length tree */ in inflate_fast()
5446 uInt md; /* mask for distance tree */ in inflate_fast()
5447 uInt c; /* bytes to copy */ in inflate_fast()
5448 uInt d; /* distance back to copy from */ in inflate_fast()
5462 if ((e = (t = tl + ((uInt)b & ml))->exop) == 0) in inflate_fast()
5478 c = t->base + ((uInt)b & inflate_mask[e]); in inflate_fast()
5484 e = (t = td + ((uInt)b & md))->exop; in inflate_fast()
5492 d = t->base + ((uInt)b & inflate_mask[e]); in inflate_fast()
5538 e = (t += ((uInt)b & inflate_mask[e]))->exop; in inflate_fast()
5553 if ((e = (t += ((uInt)b & inflate_mask[e]))->exop) == 0) in inflate_fast()
5663 uInt len;
5674 uInt len;
5676 uInt j;
5686 uInt len;
5803 extern voidp calloc(uInt items, uInt size);
5848 uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len) in adler32()