Lines Matching defs:sub

2752      * establish sub-heaps of increasing lengths:
3401 } sub; /* submode */
3517 if (((z->state->sub.method = NEXTBYTE) & 0xf) != Z_DEFLATED)
3521 z->state->sub.marker = 5; /* can't try inflateSync */
3524 if ((z->state->sub.method >> 4) + 8 > z->state->wbits)
3528 z->state->sub.marker = 5; /* can't try inflateSync */
3536 if (((z->state->sub.method << 8) + b) % 31)
3540 z->state->sub.marker = 5; /* can't try inflateSync */
3553 z->state->sub.check.need = (uLong)NEXTBYTE << 24;
3558 z->state->sub.check.need += (uLong)NEXTBYTE << 16;
3563 z->state->sub.check.need += (uLong)NEXTBYTE << 8;
3568 z->state->sub.check.need += (uLong)NEXTBYTE;
3569 z->adler = z->state->sub.check.need;
3575 z->state->sub.marker = 0; /* can try inflateSync */
3584 z->state->sub.marker = 0; /* can try inflateSync */
3592 inflate_blocks_reset(z->state->blocks, z, &z->state->sub.check.was);
3602 z->state->sub.check.need = (uLong)NEXTBYTE << 24;
3607 z->state->sub.check.need += (uLong)NEXTBYTE << 16;
3612 z->state->sub.check.need += (uLong)NEXTBYTE << 8;
3617 z->state->sub.check.need += (uLong)NEXTBYTE;
3619 if (z->state->sub.check.was != z->state->sub.check.need)
3623 z->state->sub.marker = 5; /* can't try inflateSync */
3641 z->state->sub.marker = 0;
3701 z->state->sub.marker = 0;
3706 m = z->state->sub.marker;
3725 z->state->sub.marker = m;
3910 } sub; /* submode */
4029 ZFREE(z, s->sub.trees.blens);
4031 inflate_codes_free(s->sub.decode.codes, z);
4108 s->sub.decode.codes = inflate_codes_new(bl, bd, tl, td, z);
4109 if (s->sub.decode.codes == Z_NULL)
4141 s->sub.left = (uInt)b & 0xffff;
4143 Tracev((stderr, "inflate: stored length %u\n", s->sub.left));
4144 s->mode = s->sub.left ? STORED : (s->last ? DRY : TYPE);
4150 t = s->sub.left;
4156 if ((s->sub.left -= t) != 0)
4165 s->sub.trees.table = t = (uInt)b & 0x3fff;
4176 if ((s->sub.trees.blens = (uIntf*)ZALLOC(z, t, sizeof(uInt))) == Z_NULL)
4182 s->sub.trees.index = 0;
4186 while (s->sub.trees.index < 4 + (s->sub.trees.table >> 10))
4189 s->sub.trees.blens[border[s->sub.trees.index++]] = (uInt)b & 7;
4192 while (s->sub.trees.index < 19)
4193 s->sub.trees.blens[border[s->sub.trees.index++]] = 0;
4194 s->sub.trees.bb = 7;
4195 t = inflate_trees_bits(s->sub.trees.blens, &s->sub.trees.bb,
4196 &s->sub.trees.tb, s->hufts, z);
4202 ZFREE(z, s->sub.trees.blens);
4207 s->sub.trees.index = 0;
4211 while (t = s->sub.trees.table,
4212 s->sub.trees.index < 258 + (t & 0x1f) + ((t >> 5) & 0x1f))
4217 t = s->sub.trees.bb;
4219 h = s->sub.trees.tb + ((uInt)b & inflate_mask[t]);
4225 s->sub.trees.blens[s->sub.trees.index++] = c;
4235 i = s->sub.trees.index;
4236 t = s->sub.trees.table;
4240 ZFREE(z, s->sub.trees.blens);
4246 c = c == 16 ? s->sub.trees.blens[i - 1] : 0;
4248 s->sub.trees.blens[i++] = c;
4250 s->sub.trees.index = i;
4253 s->sub.trees.tb = Z_NULL;
4261 t = s->sub.trees.table;
4263 s->sub.trees.blens, &bl, &bd, &tl, &td,
4269 ZFREE(z, s->sub.trees.blens);
4281 s->sub.decode.codes = c;
4283 ZFREE(z, s->sub.trees.blens);
4291 inflate_codes_free(s->sub.decode.codes, z);
5104 } sub; /* submode */
5146 inflate_codes_statef *c = s->sub.decode.codes; /* codes state */
5168 c->sub.code.need = c->lbits;
5169 c->sub.code.tree = c->ltree;
5173 j = c->sub.code.need;
5175 t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
5180 c->sub.lit = t->base;
5189 c->sub.copy.get = e & 15;
5196 c->sub.code.need = e;
5197 c->sub.code.tree = t + t->base;
5211 j = c->sub.copy.get;
5215 c->sub.code.need = c->dbits;
5216 c->sub.code.tree = c->dtree;
5221 j = c->sub.code.need;
5223 t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
5228 c->sub.copy.get = e & 15;
5229 c->sub.copy.dist = t->base;
5235 c->sub.code.need = e;
5236 c->sub.code.tree = t + t->base;
5244 j = c->sub.copy.get;
5246 c->sub.copy.dist += (uInt)b & inflate_mask[j];
5248 Tracevv((stderr, "inflate: distance %u\n", c->sub.copy.dist));
5252 f = q - c->sub.copy.dist;
5267 OUTBYTE(c->sub.lit)