Lines Matching refs:ranges
6783 int ranges[MAX_CLASS_RANGE_SIZE]; in optimize_class_ranges() local
6803 ranges[length] = i; in optimize_class_ranges()
6816 ranges[length] = 256; in optimize_class_ranges()
6837 …iler, backtracks, CMP(bit == 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6841 if (ranges[0] + 1 != ranges[1]) in optimize_class_ranges()
6843 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6844 …acks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()
6847 …ompiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6853 add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2])); in optimize_class_ranges()
6854 if (ranges[0] + 1 != ranges[1]) in optimize_class_ranges()
6856 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6857 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()
6860 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6864 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6865 if (ranges[1] + 1 != ranges[2]) in optimize_class_ranges()
6867 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[1]); in optimize_class_ranges()
6868 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in optimize_class_ranges()
6871 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1])); in optimize_class_ranges()
6875 if ((ranges[1] - ranges[0]) == (ranges[3] - ranges[2]) in optimize_class_ranges()
6876 && (ranges[0] | (ranges[2] - ranges[0])) == ranges[2] in optimize_class_ranges()
6877 && (ranges[1] & (ranges[2] - ranges[0])) == 0 in optimize_class_ranges()
6878 && is_powerof2(ranges[2] - ranges[0])) in optimize_class_ranges()
6880 …SLJIT_ASSERT((ranges[0] & (ranges[2] - ranges[0])) == 0 && (ranges[2] & ranges[3] & (ranges[2] - r… in optimize_class_ranges()
6881 OP2(SLJIT_OR, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[0]); in optimize_class_ranges()
6882 if (ranges[2] + 1 != ranges[3]) in optimize_class_ranges()
6884 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[2]); in optimize_class_ranges()
6885 …acks, CMP(bit != 0 ? SLJIT_LESS : SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[2])); in optimize_class_ranges()
6888 …ompiler, backtracks, CMP(bit != 0 ? SLJIT_EQUAL : SLJIT_NOT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2])); in optimize_class_ranges()
6895 if (ranges[0] + 1 != ranges[1]) in optimize_class_ranges()
6897 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6898 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()
6899 i = ranges[0]; in optimize_class_ranges()
6902 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0])); in optimize_class_ranges()
6904 if (ranges[2] + 1 != ranges[3]) in optimize_class_ranges()
6906 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[2] - i); in optimize_class_ranges()
6907 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[2])); in optimize_class_ranges()
6910 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2] - i)); in optimize_class_ranges()
6914 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[0]); in optimize_class_ranges()
6915 …add_jump(compiler, backtracks, CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[0])… in optimize_class_ranges()
6916 if (ranges[1] + 1 != ranges[2]) in optimize_class_ranges()
6918 OP2(SLJIT_SUB, TMP1, 0, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0]); in optimize_class_ranges()
6919 add_jump(compiler, backtracks, CMP(SLJIT_LESS, TMP1, 0, SLJIT_IMM, ranges[2] - ranges[1])); in optimize_class_ranges()
6922 add_jump(compiler, backtracks, CMP(SLJIT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0])); in optimize_class_ranges()