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
348 for (i = 0; i < NUMPROPS; i++) { in ordered_range_insert()
349 if (props[i].len == len && memcmp(props[i].name, name, len) == 0) in ordered_range_insert()
353 if (i == NUMPROPS) in ordered_range_insert()
359 rlp = &proptbl[i]; in ordered_range_insert()
421 for (i = 0; in ordered_range_insert()
422 i < rlp->used && c > rlp->ranges[i + 1] + 1; i += 2) ; in ordered_range_insert()
424 s = rlp->ranges[i]; in ordered_range_insert()
425 e = rlp->ranges[i + 1]; in ordered_range_insert()
431 rlp->ranges[i + 1] = c; in ordered_range_insert()
437 for (j = rlp->used; j > i; j -= 2) { in ordered_range_insert()
441 rlp->ranges[i] = rlp->ranges[i + 1] = c; in ordered_range_insert()
450 ac_uint4 i, j, size; in add_decomp() local
475 for (i = 0; i < *pdecomps_used && code > (*pdecomps)[i].code; i++) ; in add_decomp()
492 if (i < *pdecomps_used && code != (*pdecomps)[i].code) { in add_decomp()
496 for (j = *pdecomps_used; j > i; j--) in add_decomp()
505 if ((*pdecomps)[i].size < size) { in add_decomp()
506 if ((*pdecomps)[i].size == 0) in add_decomp()
507 (*pdecomps)[i].decomp = (ac_uint4 *) in add_decomp()
510 (*pdecomps)[i].decomp = (ac_uint4 *) in add_decomp()
511 realloc((char *) (*pdecomps)[i].decomp, in add_decomp()
513 (*pdecomps)[i].size = size; in add_decomp()
516 if ((*pdecomps)[i].code != code) in add_decomp()
519 (*pdecomps)[i].code = code; in add_decomp()
520 (*pdecomps)[i].used = dectmp_size; in add_decomp()
521 (void) AC_MEMCPY((char *) (*pdecomps)[i].decomp, (char *) dectmp, in add_decomp()
535 ac_uint4 i, j; in add_title() local
554 for (i = 0; i < title_used && code > title[i].key; i++) ; in add_title()
556 if (i < title_used) { in add_title()
560 for (j = title_used; j > i; j--) in add_title()
565 title[i].key = cases[2]; /* Title */ in add_title()
566 title[i].other1 = cases[0]; /* Upper */ in add_title()
567 title[i].other2 = cases[1]; /* Lower */ in add_title()
575 ac_uint4 i, j; in add_upper() local
601 for (i = 0; i < upper_used && code > upper[i].key; i++) ; in add_upper()
603 if (i < upper_used) { in add_upper()
607 for (j = upper_used; j > i; j--) in add_upper()
612 upper[i].key = cases[0]; /* Upper */ in add_upper()
613 upper[i].other1 = cases[1]; /* Lower */ in add_upper()
614 upper[i].other2 = cases[2]; /* Title */ in add_upper()
622 ac_uint4 i, j; in add_lower() local
648 for (i = 0; i < lower_used && code > lower[i].key; i++) ; in add_lower()
650 if (i < lower_used) { in add_lower()
654 for (j = lower_used; j > i; j--) in add_lower()
659 lower[i].key = cases[1]; /* Lower */ in add_lower()
660 lower[i].other1 = cases[0]; /* Upper */ in add_lower()
661 lower[i].other2 = cases[2]; /* Title */ in add_lower()
669 ac_uint4 i, j; in ordered_ccl_insert() local
713 for (i = 0; i < ccl_used && c > ccl[i + 1] + 1; i += 3) ; in ordered_ccl_insert()
715 if (ccl_code == ccl[i + 2] && c == ccl[i + 1] + 1) { in ordered_ccl_insert()
719 ccl[i + 1] = c; in ordered_ccl_insert()
721 } else if (c < ccl[i]) { in ordered_ccl_insert()
725 for (j = ccl_used; j > i; j -= 3) { in ordered_ccl_insert()
730 ccl[i] = ccl[i + 1] = c; in ordered_ccl_insert()
731 ccl[i + 2] = ccl_code; in ordered_ccl_insert()
771 ac_uint4 i, j; in add_number() local
776 for (i = 0; i < ncodes_used && code > ncodes[i].code; i++) ; in add_number()
782 if (i < ncodes_used && code == ncodes[i].code) { in add_number()
783 ncodes[i].idx = make_number(num, denom); in add_number()
803 if (i < ncodes_used) { in add_number()
804 for (j = ncodes_used; j > i; j--) { in add_number()
809 ncodes[i].code = code; in add_number()
810 ncodes[i].idx = make_number(num, denom); in add_number()
822 ac_uint4 i, lineno, skip, code, ccl_code; in read_cdata() local
849 for (s = line, i = code = 0; *s != ';' && i < 6; i++, s++) { in read_cdata()
963 for (i = 0; *s != 0 && i < 2; s++) { in read_cdata()
965 i++; in read_cdata()
974 for (s = e; *s != 0 && i < 3; s++) { in read_cdata()
976 i++; in read_cdata()
994 for (s = e; *s != 0 && i < 4; s++) { in read_cdata()
996 i++; in read_cdata()
1051 for (i = 0; i < 3 && *s; s++) { in read_cdata()
1053 i++; in read_cdata()
1092 for (s = e, i = 0; i < 4 && *s; s++) { in read_cdata()
1094 i++; in read_cdata()
1101 for (i = 0; i < 3; i++) { in read_cdata()
1103 cases[i] <<= 4; in read_cdata()
1105 cases[i] += *s - '0'; in read_cdata()
1107 cases[i] += (*s - 'A') + 10; in read_cdata()
1109 cases[i] += (*s - 'a') + 10; in read_cdata()
1161 ac_uint4 i;
1164 for (i = 0; i < d->used; i++) {
1165 if ((dp = find_decomp(d->decomp[i], compat)) != 0)
1168 dectmp[dectmp_size++] = d->decomp[i];
1180 ac_uint4 i;
1182 for (i = 0; i < decomps_used; i++) {
1184 decomp_it(&decomps[i], 0);
1186 add_decomp(decomps[i].code, 0);
1189 for (i = 0; i < kdecomps_used; i++) {
1191 decomp_it(&kdecomps[i], 1);
1193 add_decomp(kdecomps[i].code, 1);
1216 ac_uint2 i; in read_compexdata() local
1234 for (s = line, i = code = 0; *s != '#' && i < 6; i++, s++) { in read_compexdata()
1256 ac_uint4 i, cu;
1260 for (i = cu = 0; i < decomps_used; i++) {
1261 if (decomps[i].used != 2 || COMPEX_TEST(decomps[i].code))
1263 comps[cu].comp = decomps[i].code;
1265 comps[cu].code1 = decomps[i].decomp[0];
1266 comps[cu].code2 = decomps[i].decomp[1];
1279 int i; in write_case() local
1281 for (i=0; i<num; i++) { in write_case()
1285 (unsigned long) tab[i].key, (unsigned long) tab[i].other1, in write_case()
1286 (unsigned long) tab[i].other2); in write_case()
1299 ac_uint4 i, idx, nprops; in write_cdata() local
1333 for (i = idx = 0; i < NUMPROPS; i++) { in write_cdata()
1334 propcnt[i] = (proptbl[i].used != 0) ? idx : 0xffff; in write_cdata()
1335 idx += proptbl[i].used; in write_cdata()
1342 propcnt[i] = idx; in write_cdata()
1378 for (i = 0; i<nprops; i++) { in write_cdata()
1379 if (i) fprintf(out, ","); in write_cdata()
1380 if (!(i&7)) fprintf(out, "\n\t"); in write_cdata()
1382 fprintf(out, "0x%04x", propcnt[i]); in write_cdata()
1389 for (i = 0; i < NUMPROPS; i++) { in write_cdata()
1390 if (proptbl[i].used > 0) { in write_cdata()
1391 for (j=0; j<proptbl[i].used; j++) { in write_cdata()
1396 fprintf(out, "0x%08lx", (unsigned long) proptbl[i].ranges[j]); in write_cdata()
1420 for (i = 0; i < NUMPROPS; i++) { in write_cdata()
1421 if (proptbl[i].used > 0) in write_cdata()
1422 fwrite((char *) proptbl[i].ranges, sizeof(ac_uint4), in write_cdata()
1423 proptbl[i].used, out); in write_cdata()
1539 for (i=0; i<comps_used; i++) { in write_cdata()
1540 if (i) fprintf(out, ","); in write_cdata()
1542 (unsigned long) comps[i].comp, (unsigned long) comps[i].count, in write_cdata()
1543 (unsigned long) comps[i].code1, (unsigned long) comps[i].code2); in write_cdata()
1599 for (i = idx = 0; i < decomps_used; i++) { in write_cdata()
1601 (unsigned long) decomps[i].code, (unsigned long) idx); in write_cdata()
1602 idx += decomps[i].used; in write_cdata()
1615 for (i = 0; i < decomps_used; i++) in write_cdata()
1616 for (j=0; j<decomps[i].used; j++) { in write_cdata()
1621 fprintf(out, "0x%08lx", (unsigned long) decomps[i].decomp[j]); in write_cdata()
1651 for (i = idx = 0; i < decomps_used; i++) { in write_cdata()
1652 fwrite((char *) &decomps[i].code, sizeof(ac_uint4), 1, out); in write_cdata()
1654 idx += decomps[i].used; in write_cdata()
1665 for (i = 0; i < decomps_used; i++) in write_cdata()
1666 fwrite((char *) decomps[i].decomp, sizeof(ac_uint4), in write_cdata()
1667 decomps[i].used, out); in write_cdata()
1691 for (i = idx = 0; i < kdecomps_used; i++) { in write_cdata()
1693 (unsigned long) kdecomps[i].code, (unsigned long) idx); in write_cdata()
1694 idx += kdecomps[i].used; in write_cdata()
1708 for (i = 0; i < kdecomps_used; i++) in write_cdata()
1709 for (j=0; j<kdecomps[i].used; j++) { in write_cdata()
1714 fprintf(out, "0x%08lx", (unsigned long) kdecomps[i].decomp[j]); in write_cdata()
1744 for (i = idx = 0; i < kdecomps_used; i++) { in write_cdata()
1745 fwrite((char *) &kdecomps[i].code, sizeof(ac_uint4), 1, out); in write_cdata()
1747 idx += kdecomps[i].used; in write_cdata()
1758 for (i = 0; i < kdecomps_used; i++) in write_cdata()
1759 fwrite((char *) kdecomps[i].decomp, sizeof(ac_uint4), in write_cdata()
1760 kdecomps[i].used, out); in write_cdata()
1788 for (i = 0; i<ccl_used; i++) { in write_cdata()
1789 if (i) fprintf(out, ","); in write_cdata()
1790 if (!(i&3)) fprintf(out, "\n\t"); in write_cdata()
1792 fprintf(out, "0x%08lx", (unsigned long) ccl[i]); in write_cdata()
1848 for (i = 0; i<ncodes_used; i++) { in write_cdata()
1849 if (i) fprintf(out, ","); in write_cdata()
1850 if (!(i&1)) fprintf(out, "\n\t"); in write_cdata()
1853 (unsigned long) ncodes[i].code, (unsigned long) ncodes[i].idx); in write_cdata()
1858 for (i = 0; i<nums_used; i++) { in write_cdata()
1859 if (i) fprintf(out, ","); in write_cdata()
1860 if (!(i&3)) fprintf(out, "\n\t"); in write_cdata()
1862 if (nums[i].numerator < 0) { in write_cdata()
1864 nums[i].numerator, nums[i].denominator); in write_cdata()
1867 nums[i].numerator, nums[i].denominator); in write_cdata()