Lines Matching refs:nextbits
98 long nextbits; /* # of valid bits in lzw_nextdata */ member
107 #define lzw_nextbits base.nextbits
342 nextbits += 8; \
343 if (nextbits < nbits) { \
345 nextbits += 8; \
347 code = (hcode_t)((nextdata >> (nextbits-nbits)) & nbitsmask); \
348 nextbits -= nbits; \
370 long nbits, nextbits, nbitsmask; in LZWDecode() local
433 nextbits = sp->lzw_nextbits; in LZWDecode()
559 sp->lzw_nextbits = nextbits; in LZWDecode()
585 nextdata |= (unsigned long) *(bp)++ << nextbits; \
586 nextbits += 8; \
587 if (nextbits < nbits) { \
588 nextdata |= (unsigned long) *(bp)++ << nextbits;\
589 nextbits += 8; \
593 nextbits -= nbits; \
606 long nextbits, nextdata, nbitsmask; in LZWDecodeCompat() local
660 nextbits = sp->lzw_nextbits; in LZWDecodeCompat()
770 sp->lzw_nextbits = nextbits; in LZWDecodeCompat()
858 nextbits += nbits; \
859 *op++ = (unsigned char)((nextdata >> (nextbits-8))&0xff); \
860 nextbits -= 8; \
861 if (nextbits >= 8) { \
862 *op++ = (unsigned char)((nextdata >> (nextbits-8))&0xff); \
863 nextbits -= 8; \
893 long nextbits; in LZWEncode() local
911 nextbits = sp->lzw_nextbits; in LZWEncode()
1038 sp->lzw_nextbits = nextbits; in LZWEncode()
1055 long nextbits = sp->lzw_nextbits; in LZWPostEncode() local
1091 if (nextbits > 0) in LZWPostEncode()
1092 *op++ = (unsigned char)((nextdata << (8-nextbits))&0xff); in LZWPostEncode()