Lines Matching refs:i
160 i, j, symCount, symTotal, nSelectors, byteCount[256]; in get_next_block() local
173 i = setjmp(bd->jmpbuf); in get_next_block()
174 if (i) return i; in get_next_block()
179 i = get_bits(bd, 24); in get_next_block()
182 if ((i == 0x177245) && (j == 0x385090)) in get_next_block()
184 if ((i != 0x314159) || (j != 0x265359)) in get_next_block()
202 i = 0; in get_next_block()
209 symToByte[symTotal++] = i; in get_next_block()
211 i++; in get_next_block()
212 } while (i & 15); in get_next_block()
213 i -= 16; in get_next_block()
216 i += 16; in get_next_block()
217 } while (i < 256); in get_next_block()
228 for (i = 0; i < groupCount; i++) in get_next_block()
229 mtfSymbol[i] = i; in get_next_block()
233 for (i = 0; i < nSelectors; i++) { in get_next_block()
253 mtfSymbol[0] = selectors[i] = tmp_byte; in get_next_block()
274 for (i = 0; i < symCount; i++) { in get_next_block()
294 length[i] = len_m1 + 1; in get_next_block()
299 for (i = 1; i < symCount; i++) { in get_next_block()
300 if (length[i] > maxLen) in get_next_block()
301 maxLen = length[i]; in get_next_block()
302 else if (length[i] < minLen) in get_next_block()
303 minLen = length[i]; in get_next_block()
328 for (i = minLen; i <= maxLen; i++) { in get_next_block()
330 temp[i] = limit[i] = 0; in get_next_block()
332 if (length[k] == i) in get_next_block()
339 for (i = 0; i < symCount; i++) in get_next_block()
340 temp[length[i]]++; in get_next_block()
347 for (i = minLen; i < maxLen;) { in get_next_block()
348 unsigned temp_i = temp[i]; in get_next_block()
358 limit[i] = (pp << (maxLen - i)) - 1; in get_next_block()
361 base[++i] = pp - t; in get_next_block()
374 for (i = 0; i < 256; i++) { in get_next_block()
375 byteCount[i] = 0; in get_next_block()
376 mtfSymbol[i] = (uint8_t)i; in get_next_block()
432 i = hufGroup->minLen; in get_next_block()
433 while (nextSym > limit[i]) in get_next_block()
434 ++i; in get_next_block()
435 j = hufGroup->maxLen - i; in get_next_block()
441 nextSym = (nextSym >> j) - base[i]; in get_next_block()
506 i = nextSym - 1; in get_next_block()
507 uc = mtfSymbol[i]; in get_next_block()
514 mtfSymbol[i] = mtfSymbol[i-1]; in get_next_block()
515 } while (--i); in get_next_block()
538 for (i = 0; i < 256; i++) { in get_next_block()
539 int tmp_count = j + byteCount[i]; in get_next_block()
540 byteCount[i] = j; in get_next_block()
545 for (i = 0; i < dbufCount; i++) { in get_next_block()
546 uint8_t tmp_byte = (uint8_t)dbuf[i]; in get_next_block()
548 dbuf[tmp_count] |= (i << 8); in get_next_block()
709 unsigned i; in start_bunzip() local
716 i = sizeof(bunzip_data); in start_bunzip()
718 i += IOBUF_SIZE; in start_bunzip()
721 bd = *bdp = xzalloc(i); in start_bunzip()
745 i = get_bits(bd, 16); in start_bunzip()
746 if ((unsigned)(i - h0 - 1) >= 9) return RETVAL_NOT_BZIP_DATA; in start_bunzip()
751 bd->dbufSize = 100000 * (i - h0); in start_bunzip()
776 int i; in IF_DESKTOP() local
788 i = setjmp(jmpbuf); in IF_DESKTOP()
789 if (i == 0) in IF_DESKTOP()
790 i = start_bunzip(&jmpbuf, &bd, xstate->src_fd, outbuf + 2, len); in IF_DESKTOP()
792 if (i == 0) { in IF_DESKTOP()
794 i = read_bunzip(bd, outbuf, IOBUF_SIZE); in IF_DESKTOP()
795 if (i < 0) /* error? */ in IF_DESKTOP()
797 i = IOBUF_SIZE - i; /* number of bytes produced */ in IF_DESKTOP()
798 if (i == 0) /* EOF? */ in IF_DESKTOP()
800 if (i != transformer_write(xstate, outbuf, i)) { in IF_DESKTOP()
801 i = RETVAL_SHORT_WRITE; in IF_DESKTOP()
804 IF_DESKTOP(total_written += i;) in IF_DESKTOP()
808 if (i != RETVAL_LAST_BLOCK in IF_DESKTOP()
814 && i != RETVAL_OK in IF_DESKTOP()
816 bb_error_msg("bunzip error %d", i); in IF_DESKTOP()
825 i = RETVAL_OK; in IF_DESKTOP()
847 return i ? i : IF_DESKTOP(total_written) + 0; in IF_DESKTOP()
855 int i; in unpack_bz2_data() local
859 i = setjmp(jmpbuf); in unpack_bz2_data()
860 if (i == 0) { in unpack_bz2_data()
861 i = start_bunzip(&jmpbuf, in unpack_bz2_data()
870 if (i == 0) { in unpack_bz2_data()
893 int i = unpack_bz2_stream(0, 1); in main() local
894 if (i < 0) in main()
895 fprintf(stderr, "%s\n", bunzip_errors[-i]); in main()
898 return -i; in main()