Lines Matching refs:val

109     uint32_t olen, off, len, bits, val, sig, i, l;  in MPPC_Decompress()  local
124 val = getbyte(isrc, i++, l); in MPPC_Decompress()
125 if (val < 0x80) { /* literal byte < 0x80 */ in MPPC_Decompress()
128 (state->hist)[(state->histptr)++] = (uint8_t) val; in MPPC_Decompress()
139 sig = val & 0xc0; in MPPC_Decompress()
144 (uint8_t) (0x80|((val&0x3f)<<1)|getbits(isrc, 1 , &i ,&l)); in MPPC_Decompress()
157 sig = val & 0xf0; in MPPC_Decompress()
159 off = (((val&0x0f)<<2)|getbits(isrc, 2 , &i ,&l)); in MPPC_Decompress()
163 off = ((((val&0x0f)<<4)|getbits(isrc, 4 , &i ,&l))+64); in MPPC_Decompress()
167 off = ((((val&0x1f)<<8)|getbyte(isrc, i++, l))+320); in MPPC_Decompress()
180 val = getbyte(isrc, i, l); in MPPC_Decompress()
181 if ((val & 0x80) == 0x00) { /* len = 3 */ in MPPC_Decompress()
185 } else if ((val & 0xc0) == 0x80) { /* 4 <= len < 8 */ in MPPC_Decompress()
186 len = 0x04 | ((val>>4) & 0x03); in MPPC_Decompress()
189 } else if ((val & 0xe0) == 0xc0) { /* 8 <= len < 16 */ in MPPC_Decompress()
190 len = 0x08 | ((val>>2) & 0x07); in MPPC_Decompress()
193 } else if ((val & 0xf0) == 0xe0) { /* 16 <= len < 32 */ in MPPC_Decompress()
194 len = 0x10 | (val & 0x0f); in MPPC_Decompress()
199 val = (val << 8) | getbyte(isrc, ++i, l); in MPPC_Decompress()
200 if ((val & 0xf800) == 0xf000) { /* 32 <= len < 64 */ in MPPC_Decompress()
201 len = 0x0020 | ((val >> 6) & 0x001f); in MPPC_Decompress()
204 } else if ((val & 0xfc00) == 0xf800) { /* 64 <= len < 128 */ in MPPC_Decompress()
205 len = 0x0040 | ((val >> 4) & 0x003f); in MPPC_Decompress()
208 } else if ((val & 0xfe00) == 0xfc00) { /* 128 <= len < 256 */ in MPPC_Decompress()
209 len = 0x0080 | ((val >> 2) & 0x007f); in MPPC_Decompress()
212 } else if ((val & 0xff00) == 0xfe00) { /* 256 <= len < 512 */ in MPPC_Decompress()
213 len = 0x0100 | (val & 0x00ff); in MPPC_Decompress()
218 val = (val << 8) | getbyte(isrc, ++i, l); in MPPC_Decompress()
219 if ((val & 0xff8000) == 0xff0000) { /* 512 <= len < 1024 */ in MPPC_Decompress()
220 len = 0x000200 | ((val >> 6) & 0x0001ff); in MPPC_Decompress()
223 } else if ((val & 0xffc000) == 0xff8000) {/* 1024 <= len < 2048 */ in MPPC_Decompress()
224 len = 0x000400 | ((val >> 4) & 0x0003ff); in MPPC_Decompress()
227 } else if ((val & 0xffe000) == 0xffc000) {/* 2048 <= len < 4096 */ in MPPC_Decompress()
228 len = 0x000800 | ((val >> 2) & 0x0007ff); in MPPC_Decompress()
231 } else if ((val & 0xfff000) == 0xffe000) {/* 4096 <= len < 8192 */ in MPPC_Decompress()
232 len = 0x001000 | (val & 0x000fff); in MPPC_Decompress()