Lines Matching refs:w
167 #define flush_output(w) (wp=(w),flush_window()) argument
344 register int w; /* bits before this table == (l * h) */ in huft_build() local
443 w = -l; /* bits decoded == (l * h) */ in huft_build()
459 while (k > w + l) in huft_build()
463 w += l; /* previous table always l bits */ in huft_build()
466 z = (z = g - w) > (unsigned)l ? l : z; /* upper limit on table size */ in huft_build()
467 if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ in huft_build()
506 j = i >> (w - l); /* (get around Turbo C bug) */ in huft_build()
514 r.b = (uch)(k - w); in huft_build()
531 f = 1 << (k - w); in huft_build()
532 for (j = i >> w; j < z; j += f) in huft_build()
541 while ((i & ((1 << w) - 1)) != x[h]) in huft_build()
544 w -= l; in huft_build()
596 unsigned w; /* current window position */ in inflate_codes() local
606 w = wp; /* initialize window position */ in inflate_codes()
625 slide[w++] = (uch)t->v.n; in inflate_codes()
626 Tracevv((stderr, "%c", slide[w-1])); in inflate_codes()
627 if (w == WSIZE) in inflate_codes()
629 flush_output(w); in inflate_codes()
630 w = 0; in inflate_codes()
656 d = w - t->v.n - ((unsigned)b & mask_bits[e]); in inflate_codes()
658 Tracevv((stderr,"\\[%d,%d]", w-d, n)); in inflate_codes()
662 n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); in inflate_codes()
664 if (w - d >= e) /* (this test assumes unsigned comparison) */ in inflate_codes()
666 memcpy(slide + w, slide + d, e); in inflate_codes()
667 w += e; in inflate_codes()
673 slide[w++] = slide[d++]; in inflate_codes()
674 Tracevv((stderr, "%c", slide[w-1])); in inflate_codes()
676 if (w == WSIZE) in inflate_codes()
678 flush_output(w); in inflate_codes()
679 w = 0; in inflate_codes()
687 wp = w; /* restore global window pointer */ in inflate_codes()
704 unsigned w; /* current window position */ in inflate_stored() local
713 w = wp; /* initialize window position */ in inflate_stored()
735 slide[w++] = (uch)b; in inflate_stored()
736 if (w == WSIZE) in inflate_stored()
738 flush_output(w); in inflate_stored()
739 w = 0; in inflate_stored()
746 wp = w; /* restore global window pointer */ in inflate_stored()