Lines Matching refs:w

171 #define flush_output(w) (wp=(w),flush_window())  argument
348 register int w; /* bits before this table == (l * h) */ in huft_build() local
447 w = -l; /* bits decoded == (l * h) */ in huft_build()
463 while (k > w + l) in huft_build()
467 w += l; /* previous table always l bits */ in huft_build()
470 z = (z = g - w) > (unsigned)l ? l : z; /* upper limit on table size */ in huft_build()
471 if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ in huft_build()
510 j = i >> (w - l); /* (get around Turbo C bug) */ in huft_build()
518 r.b = (uch)(k - w); in huft_build()
535 f = 1 << (k - w); in huft_build()
536 for (j = i >> w; j < z; j += f) in huft_build()
545 while ((i & ((1 << w) - 1)) != x[h]) in huft_build()
548 w -= l; in huft_build()
600 unsigned w; /* current window position */ in inflate_codes() local
610 w = wp; /* initialize window position */ in inflate_codes()
629 slide[w++] = (uch)t->v.n; in inflate_codes()
630 Tracevv((stderr, "%c", slide[w-1])); in inflate_codes()
631 if (w == WSIZE) in inflate_codes()
633 flush_output(w); in inflate_codes()
634 w = 0; in inflate_codes()
660 d = w - t->v.n - ((unsigned)b & mask_bits[e]); in inflate_codes()
662 Tracevv((stderr,"\\[%d,%d]", w-d, n)); in inflate_codes()
666 n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); in inflate_codes()
668 if (w - d >= e) /* (this test assumes unsigned comparison) */ in inflate_codes()
670 memcpy(slide + w, slide + d, e); in inflate_codes()
671 w += e; in inflate_codes()
677 slide[w++] = slide[d++]; in inflate_codes()
678 Tracevv((stderr, "%c", slide[w-1])); in inflate_codes()
680 if (w == WSIZE) in inflate_codes()
682 flush_output(w); in inflate_codes()
683 w = 0; in inflate_codes()
691 wp = w; /* restore global window pointer */ in inflate_codes()
708 unsigned w; /* current window position */ in inflate_stored() local
717 w = wp; /* initialize window position */ in inflate_stored()
739 slide[w++] = (uch)b; in inflate_stored()
740 if (w == WSIZE) in inflate_stored()
742 flush_output(w); in inflate_stored()
743 w = 0; in inflate_stored()
750 wp = w; /* restore global window pointer */ in inflate_stored()