Lines Matching defs:bitpos
141 int fd, bitpos, len, max;
156 // Advance bitpos without the overhead of recording bits
159 int pos = bb->bitpos + bits, len = bb->len << 3;
166 bb->bitpos = pos;
172 int bufpos = bb->bitpos>>3;
179 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1;
188 int click = bb->bitpos >> 3, blow, blen;
194 blow = bb->bitpos & 7;
200 bb->bitpos += blen;
208 if (!bb->bitpos) return;
210 xwrite(bb->fd, bb->buf, (bb->bitpos+7)/8);
212 bb->bitpos = 0;
218 int click = bb->bitpos >> 3, blow, blen;
225 blow = bb->bitpos & 7;
229 bb->bitpos += blen;
315 bitbuf_skip(bb, (8-bb->bitpos)&7);
322 int pos = bb->bitpos >> 3, bblen = bb->len - pos;
438 bitbuf_put(bb, 0, (8-bb->bitpos)&7);
546 bitbuf_put(bb, 0, (8-bb->bitpos)&7);
569 bitbuf_skip(bb, (8-bb->bitpos)&7);