Lines Matching refs:w
170 #define flush_output(w) (wp=(w),flush_window()) argument
347 register int w; /* bits before this table == (l * h) */ in huft_build() local
446 w = -l; /* bits decoded == (l * h) */ in huft_build()
462 while (k > w + l) in huft_build()
466 w += l; /* previous table always l bits */ in huft_build()
469 z = (z = g - w) > (unsigned)l ? l : z; /* upper limit on table size */ in huft_build()
470 if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ in huft_build()
509 j = i >> (w - l); /* (get around Turbo C bug) */ in huft_build()
517 r.b = (uch)(k - w); in huft_build()
534 f = 1 << (k - w); in huft_build()
535 for (j = i >> w; j < z; j += f) in huft_build()
544 while ((i & ((1 << w) - 1)) != x[h]) in huft_build()
547 w -= l; in huft_build()
599 unsigned w; /* current window position */ in inflate_codes() local
609 w = wp; /* initialize window position */ in inflate_codes()
628 slide[w++] = (uch)t->v.n; in inflate_codes()
629 Tracevv((stderr, "%c", slide[w-1])); in inflate_codes()
630 if (w == WSIZE) in inflate_codes()
632 flush_output(w); in inflate_codes()
633 w = 0; in inflate_codes()
659 d = w - t->v.n - ((unsigned)b & mask_bits[e]); in inflate_codes()
661 Tracevv((stderr,"\\[%d,%d]", w-d, n)); in inflate_codes()
665 n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); in inflate_codes()
667 if (w - d >= e) /* (this test assumes unsigned comparison) */ in inflate_codes()
669 memcpy(slide + w, slide + d, e); in inflate_codes()
670 w += e; in inflate_codes()
676 slide[w++] = slide[d++]; in inflate_codes()
677 Tracevv((stderr, "%c", slide[w-1])); in inflate_codes()
679 if (w == WSIZE) in inflate_codes()
681 flush_output(w); in inflate_codes()
682 w = 0; in inflate_codes()
690 wp = w; /* restore global window pointer */ in inflate_codes()
707 unsigned w; /* current window position */ in inflate_stored() local
716 w = wp; /* initialize window position */ in inflate_stored()
738 slide[w++] = (uch)b; in inflate_stored()
739 if (w == WSIZE) in inflate_stored()
741 flush_output(w); in inflate_stored()
742 w = 0; in inflate_stored()
749 wp = w; /* restore global window pointer */ in inflate_stored()