Lines Matching refs:ranges
6632 int ranges[MAX_CLASS_RANGE_SIZE]; in optimize_class_ranges() local
6652 ranges[length] = i; in optimize_class_ranges()
6665 ranges[length] = 256; in optimize_class_ranges()
6686 …iler, backtracks, CMP(bit == 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6690 if (ranges[0] + 1 != ranges[1]) in optimize_class_ranges()
6692 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6693 …acks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()
6696 …ompiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6702 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2])); in optimize_class_ranges()
6703 if (ranges[0] + 1 != ranges[1]) in optimize_class_ranges()
6705 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6706 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()
6709 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6713 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6714 if (ranges[1] + 1 != ranges[2]) in optimize_class_ranges()
6716 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[1]); in optimize_class_ranges()
6717 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in optimize_class_ranges()
6720 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1])); in optimize_class_ranges()
6724 if ((ranges[1] - ranges[0]) == (ranges[3] - ranges[2]) in optimize_class_ranges()
6725 && (ranges[0] | (ranges[2] - ranges[0])) == ranges[2] in optimize_class_ranges()
6726 && (ranges[1] & (ranges[2] - ranges[0])) == 0 in optimize_class_ranges()
6727 && is_powerof2(ranges[2] - ranges[0])) in optimize_class_ranges()
6729 …SLJIT_ASSERT((ranges[0] & (ranges[2] - ranges[0])) == 0 && (ranges[2] & ranges[3] & (ranges[2] - r… in optimize_class_ranges()
6730 OP2(SLJIT_OR, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[0]); in optimize_class_ranges()
6731 if (ranges[2] + 1 != ranges[3]) in optimize_class_ranges()
6733 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[2]); in optimize_class_ranges()
6734 …acks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[2])); in optimize_class_ranges()
6737 …ompiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2])); in optimize_class_ranges()
6744 if (ranges[0] + 1 != ranges[1]) in optimize_class_ranges()
6746 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6747 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()
6748 i = ranges[0]; in optimize_class_ranges()
6751 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6753 if (ranges[2] + 1 != ranges[3]) in optimize_class_ranges()
6755 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[2] - i); in optimize_class_ranges()
6756 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[2])); in optimize_class_ranges()
6759 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2] - i)); in optimize_class_ranges()
6763 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6764 …add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[0])… in optimize_class_ranges()
6765 if (ranges[1] + 1 != ranges[2]) in optimize_class_ranges()
6767 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0]); in optimize_class_ranges()
6768 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in optimize_class_ranges()
6771 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()