Searched refs:bitbuf (Results 1 - 2 of 2) sorted by relevance

/ast/src/cmd/codexlib/lzd/
H A Dlzd.c39 unsigned long bitbuf; member in struct:State_s
86 state->bitbuf |= GETCHAR(state) << state->bitcount;
89 x = state->bitbuf & state->bitmask;
90 state->bitbuf >>= state->nbits;
/ast/src/cmd/codexlib/lzh/
H A Dlzh.c71 ui4 bitbuf; member in struct:State_s
126 #define GETBITS(p,n) ((n)<=(p)->bitcount ? ((((p)->bitbuf)>>((p)->bitcount-=(n)))&((1L<<(n))-1)) : getbits(p,n,0))
127 #define PEEKBITS(p,n) ((n)<=(p)->bitcount ? ((((p)->bitbuf)>>((p)->bitcount-(n)))&((1L<<(n))-1)) : getbits(p,n,1))
135 state->bitbuf <<= 8;
136 state->bitbuf |= GETCHAR(state);

Completed in 13 milliseconds