Lines Matching refs:ii

164   int hh, ii, jj, kk, symCount, *base, *limit;  in read_block_header()  local
168 ii = get_bits(bd, 24); in read_block_header()
173 if (ii==0x177245 && jj==0x385090) return RETVAL_LAST_BLOCK; in read_block_header()
176 if (ii!=0x314159 || jj!=0x265359) return RETVAL_NOT_BZIP_DATA; in read_block_header()
189 for (ii=0; ii<16; ii++) { in read_block_header()
190 if (hh & (1 << (15 - ii))) { in read_block_header()
194 bd->symToByte[bd->symTotal++] = (16 * ii) + jj; in read_block_header()
210 for (ii=0; ii<bd->groupCount; ii++) bd->mtfSymbol[ii] = ii; in read_block_header()
211 for (ii=0; ii<bd->nSelectors; ii++) { in read_block_header()
220 bd->mtfSymbol[0] = bd->selectors[ii] = uc; in read_block_header()
233 for (ii = 0; ii < symCount; ii++) { in read_block_header()
247 length[ii] = hh; in read_block_header()
252 for (ii = 1; ii < symCount; ii++) { in read_block_header()
253 if(length[ii] > maxLen) maxLen = length[ii]; in read_block_header()
254 else if(length[ii] < minLen) minLen = length[ii]; in read_block_header()
284 for (ii = minLen; ii <= maxLen; ii++) { in read_block_header()
285 temp[ii] = limit[ii] = 0; in read_block_header()
287 if (length[hh] == ii) hufGroup->permute[pp++] = hh; in read_block_header()
291 for (ii = 0; ii < symCount; ii++) temp[length[ii]]++; in read_block_header()
298 for (ii = minLen; ii < maxLen; ii++) { in read_block_header()
299 pp += temp[ii]; in read_block_header()
300 limit[ii] = pp-1; in read_block_header()
302 base[ii+1] = pp-(hh+=temp[ii]); in read_block_header()
322 int ii, jj, kk, runPos, dbufCount, symCount, selector, nextSym, in read_huffman_data() local
333 for(ii=0; ii<256; ii++) { in read_huffman_data()
334 byteCount[ii] = 0; in read_huffman_data()
335 bd->mtfSymbol[ii] = ii; in read_huffman_data()
359 ii = hufGroup->minLen; in read_huffman_data()
360 jj = get_bits(bd, ii); in read_huffman_data()
361 while (jj > limit[ii]) { in read_huffman_data()
363 ii++; in read_huffman_data()
372 jj-=base[ii]; in read_huffman_data()
374 if (ii > hufGroup->maxLen || (unsigned)jj >= MAX_SYMBOLS) in read_huffman_data()
423 ii = nextSym - 1; in read_huffman_data()
424 uc = bd->mtfSymbol[ii]; in read_huffman_data()
427 while(ii--) bd->mtfSymbol[ii+1] = bd->mtfSymbol[ii]; in read_huffman_data()
454 int ii, jj; in burrows_wheeler_prep() local
460 for (ii=0; ii<256; ii++) { in burrows_wheeler_prep()
461 int kk = jj + byteCount[ii]; in burrows_wheeler_prep()
462 byteCount[ii] = jj; in burrows_wheeler_prep()
468 for (ii=0; ii < bw->writeCount; ii++) { in burrows_wheeler_prep()
469 unsigned char uc = dbuf[ii]; in burrows_wheeler_prep()
470 dbuf[byteCount[uc]] |= (ii << 8); in burrows_wheeler_prep()