Lines Matching refs:GETBITS
126 #define GETBITS(p,n) ((n)<=(p)->bitcount ? ((((p)->bitbuf)>>((p)->bitcount-=(n)))&((1L<<(n))-1)) : getbits(p,n,0))
144 return GETBITS(state, n);
337 if (!(n = GETBITS(state, nbit)))
339 c = GETBITS(state, nbit);
350 if ((c = GETBITS(state, 3)) == 7)
351 while (GETBITS(state, 1))
356 c = GETBITS(state, 2);
377 n = GETBITS(state, CBIT);
382 c = GETBITS(state, CBIT);
403 c = GETBITS(state, 4) + 3;
405 c = GETBITS(state, CBIT) + 20;
621 if (GETBITS(state, 1))
622 state->c_len[i] = GETBITS(state, LENFIELD) + 1;
627 c = GETBITS(state, CBIT);
647 state->p_len[i] = GETBITS(state, LENFIELD);
650 c = GETBITS(state, WINBIT_MAX - 6);
722 c = state->child[c - GETBITS(state, 1)];
726 c += GETBITS(state, 8);
756 c = state->child[c - GETBITS(state, 1)];
759 return (c << 6) + GETBITS(state, 6);
804 state->blocksize = GETBITS(state, BUFBITS);
807 if (GETBITS(state, 1))
815 j = state->c_table[GETBITS(state, 4)];
818 if (GETBITS(state, 1))
824 j += GETBITS(state, EXTRABITS);
839 j = state->p_table[GETBITS(state, 8)];
844 if (GETBITS(state, 1))
850 return (j << 6) + GETBITS(state, 6);
876 if (!state->blocksize && (!(state->blocksize = GETBITS(state, 16)) || get_p_len(state, NT, TBIT, 3) || get_c_len(state) || get_p_len(state, state->snp, state->pbit, -1)))
905 j = (1 << (j - 1)) + GETBITS(state, j - 1);
919 if (GETBITS(state, 1))
920 return GETBITS(state, 8);
921 state->matchpos = GETBITS(state, 11);
922 return GETBITS(state, 4) + 0x100;