Lines Matching refs:i
227 int i, j, k, len; in add_range() local
243 for (i = 0; i < NUMPROPS; i++) { in add_range()
244 if (props[i].len == len && memcmp(props[i].name, name, len) == 0) in add_range()
248 if (i == NUMPROPS) in add_range()
251 rlp = &proptbl[i]; in add_range()
293 for (i = 0; in add_range()
294 i < rlp->used && start > rlp->ranges[i + 1] + 1; i += 2) ; in add_range()
300 if (rlp->ranges[i] <= start && start <= rlp->ranges[i + 1] + 1) { in add_range()
301 rlp->ranges[i + 1] = end; in add_range()
308 for (j = rlp->used; j > i; j -= 2) { in add_range()
316 rlp->ranges[i] = start; in add_range()
317 rlp->ranges[i + 1] = end; in add_range()
325 int i, j; in ordered_range_insert() local
350 for (i = 0; i < NUMPROPS; i++) { in ordered_range_insert()
351 if (props[i].len == len && memcmp(props[i].name, name, len) == 0) in ordered_range_insert()
355 if (i == NUMPROPS) { in ordered_range_insert()
363 rlp = &proptbl[i]; in ordered_range_insert()
425 for (i = 0; in ordered_range_insert()
426 i < rlp->used && c > rlp->ranges[i + 1] + 1; i += 2) ; in ordered_range_insert()
428 s = rlp->ranges[i]; in ordered_range_insert()
429 e = rlp->ranges[i + 1]; in ordered_range_insert()
435 rlp->ranges[i + 1] = c; in ordered_range_insert()
441 for (j = rlp->used; j > i; j -= 2) { in ordered_range_insert()
445 rlp->ranges[i] = rlp->ranges[i + 1] = c; in ordered_range_insert()
454 ac_uint4 i, j, size; in add_decomp() local
479 for (i = 0; i < *pdecomps_used && code > (*pdecomps)[i].code; i++) ; in add_decomp()
496 if (i < *pdecomps_used && code != (*pdecomps)[i].code) { in add_decomp()
500 for (j = *pdecomps_used; j > i; j--) in add_decomp()
509 if ((*pdecomps)[i].size < size) { in add_decomp()
510 if ((*pdecomps)[i].size == 0) in add_decomp()
511 (*pdecomps)[i].decomp = (ac_uint4 *) in add_decomp()
514 (*pdecomps)[i].decomp = (ac_uint4 *) in add_decomp()
515 realloc((char *) (*pdecomps)[i].decomp, in add_decomp()
517 (*pdecomps)[i].size = size; in add_decomp()
520 if ((*pdecomps)[i].code != code) in add_decomp()
523 (*pdecomps)[i].code = code; in add_decomp()
524 (*pdecomps)[i].used = dectmp_size; in add_decomp()
525 (void) AC_MEMCPY((char *) (*pdecomps)[i].decomp, (char *) dectmp, in add_decomp()
539 ac_uint4 i, j; in add_title() local
562 for (i = 0; i < title_used && code > title[i].key; i++) ; in add_title()
564 if (i < title_used) { in add_title()
568 for (j = title_used; j > i; j--) in add_title()
573 title[i].key = cases[2]; /* Title */ in add_title()
574 title[i].other1 = cases[0]; /* Upper */ in add_title()
575 title[i].other2 = cases[1]; /* Lower */ in add_title()
583 ac_uint4 i, j; in add_upper() local
609 for (i = 0; i < upper_used && code > upper[i].key; i++) ; in add_upper()
611 if (i < upper_used) { in add_upper()
615 for (j = upper_used; j > i; j--) in add_upper()
620 upper[i].key = cases[0]; /* Upper */ in add_upper()
621 upper[i].other1 = cases[1]; /* Lower */ in add_upper()
622 upper[i].other2 = cases[2]; /* Title */ in add_upper()
630 ac_uint4 i, j; in add_lower() local
656 for (i = 0; i < lower_used && code > lower[i].key; i++) ; in add_lower()
658 if (i < lower_used) { in add_lower()
662 for (j = lower_used; j > i; j--) in add_lower()
667 lower[i].key = cases[1]; /* Lower */ in add_lower()
668 lower[i].other1 = cases[0]; /* Upper */ in add_lower()
669 lower[i].other2 = cases[2]; /* Title */ in add_lower()
677 ac_uint4 i, j; in ordered_ccl_insert() local
721 for (i = 0; i < ccl_used && c > ccl[i + 1] + 1; i += 3) ; in ordered_ccl_insert()
723 if (ccl_code == ccl[i + 2] && c == ccl[i + 1] + 1) { in ordered_ccl_insert()
727 ccl[i + 1] = c; in ordered_ccl_insert()
729 } else if (c < ccl[i]) { in ordered_ccl_insert()
733 for (j = ccl_used; j > i; j -= 3) { in ordered_ccl_insert()
738 ccl[i] = ccl[i + 1] = c; in ordered_ccl_insert()
739 ccl[i + 2] = ccl_code; in ordered_ccl_insert()
779 ac_uint4 i, j; in add_number() local
784 for (i = 0; i < ncodes_used && code > ncodes[i].code; i++) ; in add_number()
790 if (i < ncodes_used && code == ncodes[i].code) { in add_number()
791 ncodes[i].idx = make_number(num, denom); in add_number()
811 if (i < ncodes_used) { in add_number()
812 for (j = ncodes_used; j > i; j--) { in add_number()
817 ncodes[i].code = code; in add_number()
818 ncodes[i].idx = make_number(num, denom); in add_number()
830 ac_uint4 i, lineno, skip, code, ccl_code; in read_cdata() local
859 for (s = line, i = code = 0; *s != ';' && i < 6; i++, s++) { in read_cdata()
973 for (i = 0; *s != 0 && i < 2; s++) { in read_cdata()
975 i++; in read_cdata()
988 for (s = e; *s != 0 && i < 3; s++) { in read_cdata()
990 i++; in read_cdata()
1008 for (s = e; *s != 0 && i < 4; s++) { in read_cdata()
1010 i++; in read_cdata()
1065 for (i = 0; i < 3 && *s; s++) { in read_cdata()
1067 i++; in read_cdata()
1106 for (s = e, i = 0; i < 4 && *s; s++) { in read_cdata()
1108 i++; in read_cdata()
1115 for (i = 0; i < 3; i++) { in read_cdata()
1117 cases[i] <<= 4; in read_cdata()
1119 cases[i] += *s - '0'; in read_cdata()
1121 cases[i] += (*s - 'A') + 10; in read_cdata()
1123 cases[i] += (*s - 'a') + 10; in read_cdata()
1175 ac_uint4 i;
1178 for (i = 0; i < d->used; i++) {
1179 if ((dp = find_decomp(d->decomp[i], compat)) != 0)
1182 dectmp[dectmp_size++] = d->decomp[i];
1194 ac_uint4 i;
1196 for (i = 0; i < decomps_used; i++) {
1198 decomp_it(&decomps[i], 0);
1200 add_decomp(decomps[i].code, 0);
1203 for (i = 0; i < kdecomps_used; i++) {
1205 decomp_it(&kdecomps[i], 1);
1207 add_decomp(kdecomps[i].code, 1);
1230 ac_uint2 i; in read_compexdata() local
1248 for (s = line, i = code = 0; *s != '#' && i < 6; i++, s++) { in read_compexdata()
1270 ac_uint4 i, cu;
1274 for (i = cu = 0; i < decomps_used; i++) {
1275 if (decomps[i].used != 2 || COMPEX_TEST(decomps[i].code))
1277 comps[cu].comp = decomps[i].code;
1279 comps[cu].code1 = decomps[i].decomp[0];
1280 comps[cu].code2 = decomps[i].decomp[1];
1293 int i; in write_case() local
1295 for (i=0; i<num; i++) { in write_case()
1299 (unsigned long) tab[i].key, (unsigned long) tab[i].other1, in write_case()
1300 (unsigned long) tab[i].other2); in write_case()
1313 ac_uint4 i, idx, nprops; in write_cdata() local
1347 for (i = idx = 0; i < NUMPROPS; i++) { in write_cdata()
1348 propcnt[i] = (proptbl[i].used != 0) ? idx : 0xffff; in write_cdata()
1349 idx += proptbl[i].used; in write_cdata()
1356 propcnt[i] = idx; in write_cdata()
1392 for (i = 0; i<nprops; i++) { in write_cdata()
1393 if (i) fprintf(out, ","); in write_cdata()
1394 if (!(i&7)) fprintf(out, "\n\t"); in write_cdata()
1396 fprintf(out, "0x%04x", propcnt[i]); in write_cdata()
1403 for (i = 0; i < NUMPROPS; i++) { in write_cdata()
1404 if (proptbl[i].used > 0) { in write_cdata()
1405 for (j=0; j<proptbl[i].used; j++) { in write_cdata()
1410 fprintf(out, "0x%08lx", (unsigned long) proptbl[i].ranges[j]); in write_cdata()
1434 for (i = 0; i < NUMPROPS; i++) { in write_cdata()
1435 if (proptbl[i].used > 0) in write_cdata()
1436 fwrite((char *) proptbl[i].ranges, sizeof(ac_uint4), in write_cdata()
1437 proptbl[i].used, out); in write_cdata()
1553 for (i=0; i<comps_used; i++) { in write_cdata()
1554 if (i) fprintf(out, ","); in write_cdata()
1556 (unsigned long) comps[i].comp, (unsigned long) comps[i].count, in write_cdata()
1557 (unsigned long) comps[i].code1, (unsigned long) comps[i].code2); in write_cdata()
1613 for (i = idx = 0; i < decomps_used; i++) { in write_cdata()
1615 (unsigned long) decomps[i].code, (unsigned long) idx); in write_cdata()
1616 idx += decomps[i].used; in write_cdata()
1629 for (i = 0; i < decomps_used; i++) in write_cdata()
1630 for (j=0; j<decomps[i].used; j++) { in write_cdata()
1635 fprintf(out, "0x%08lx", (unsigned long) decomps[i].decomp[j]); in write_cdata()
1665 for (i = idx = 0; i < decomps_used; i++) { in write_cdata()
1666 fwrite((char *) &decomps[i].code, sizeof(ac_uint4), 1, out); in write_cdata()
1668 idx += decomps[i].used; in write_cdata()
1679 for (i = 0; i < decomps_used; i++) in write_cdata()
1680 fwrite((char *) decomps[i].decomp, sizeof(ac_uint4), in write_cdata()
1681 decomps[i].used, out); in write_cdata()
1705 for (i = idx = 0; i < kdecomps_used; i++) { in write_cdata()
1707 (unsigned long) kdecomps[i].code, (unsigned long) idx); in write_cdata()
1708 idx += kdecomps[i].used; in write_cdata()
1722 for (i = 0; i < kdecomps_used; i++) in write_cdata()
1723 for (j=0; j<kdecomps[i].used; j++) { in write_cdata()
1728 fprintf(out, "0x%08lx", (unsigned long) kdecomps[i].decomp[j]); in write_cdata()
1758 for (i = idx = 0; i < kdecomps_used; i++) { in write_cdata()
1759 fwrite((char *) &kdecomps[i].code, sizeof(ac_uint4), 1, out); in write_cdata()
1761 idx += kdecomps[i].used; in write_cdata()
1772 for (i = 0; i < kdecomps_used; i++) in write_cdata()
1773 fwrite((char *) kdecomps[i].decomp, sizeof(ac_uint4), in write_cdata()
1774 kdecomps[i].used, out); in write_cdata()
1802 for (i = 0; i<ccl_used; i++) { in write_cdata()
1803 if (i) fprintf(out, ","); in write_cdata()
1804 if (!(i&3)) fprintf(out, "\n\t"); in write_cdata()
1806 fprintf(out, "0x%08lx", (unsigned long) ccl[i]); in write_cdata()
1862 for (i = 0; i<ncodes_used; i++) { in write_cdata()
1863 if (i) fprintf(out, ","); in write_cdata()
1864 if (!(i&1)) fprintf(out, "\n\t"); in write_cdata()
1867 (unsigned long) ncodes[i].code, (unsigned long) ncodes[i].idx); in write_cdata()
1872 for (i = 0; i<nums_used; i++) { in write_cdata()
1873 if (i) fprintf(out, ","); in write_cdata()
1874 if (!(i&3)) fprintf(out, "\n\t"); in write_cdata()
1876 if (nums[i].numerator < 0) { in write_cdata()
1878 nums[i].numerator, nums[i].denominator); in write_cdata()
1881 nums[i].numerator, nums[i].denominator); in write_cdata()