Lines Matching refs:max

1584 sljit_u32 max;  in get_class_iterator_size()  local
1600 max = GET2(cc, 1 + IMM2_SIZE); in get_class_iterator_size()
1601 if (max == 0) in get_class_iterator_size()
1603 max -= min; in get_class_iterator_size()
1604 if (max > 2) in get_class_iterator_size()
1605 max = 2; in get_class_iterator_size()
1606 return max; in get_class_iterator_size()
1621 sljit_s32 min, max, i; in detect_repeat() local
1648 max = 0; in detect_repeat()
1661 max++; in detect_repeat()
1664 if (next[0] == type && next[1] == *begin && max >= 1) in detect_repeat()
1669 for (i = 0; i < max; i++, next_end += 1 + LINK_SIZE) in detect_repeat()
1673 if (i == max) in detect_repeat()
1678 common->private_data_ptrs[max_end - common->start - LINK_SIZE + 2] = max + 2; in detect_repeat()
3746 static void peek_char(compiler_common *common, sljit_u32 max, sljit_s32 dst, sljit_sw dstw, jump_li… in peek_char() argument
3755 SLJIT_UNUSED_ARG(max); in peek_char()
3766 if (max < 128) return; in peek_char()
3780 if (max < 0xd800) return; in peek_char()
3809 if (max < 0xd800) return; in peek_char()
3830 static void peek_char_back(compiler_common *common, sljit_u32 max, jump_list **backtracks) in peek_char_back() argument
3840 SLJIT_UNUSED_ARG(max); in peek_char_back()
3849 if (max < 128) return; in peek_char_back()
3865 if (max < 0xd800) return; in peek_char_back()
3903 static void read_char(compiler_common *common, sljit_u32 min, sljit_u32 max, in read_char() argument
3918 SLJIT_UNUSED_ARG(max); in read_char()
3921 SLJIT_ASSERT(min <= max); in read_char()
3930 if (max < 128 && !(options & READ_CHAR_UPDATE_STR_PTR)) return; in read_char()
3972 else if (min >= 0x800 && max <= 0xffff) in read_char()
3992 else if (max >= 0x800) in read_char()
3996 else if (max < 128) in read_char()
4020 if (max < 0xd800 && !(options & READ_CHAR_UPDATE_STR_PTR)) return; in read_char()
4038 if (max >= 0x10000) in read_char()
4062 if (max >= 0xd800) in read_char()
4070 if (max >= 0xd800) in read_char()
5868 … check_fast_forward_char_pair_simd(compiler_common *common, fast_forward_char_data *chars, int max) in check_fast_forward_char_pair_simd() argument
5874 for (i = max - 1; i >= 1; i--) in check_fast_forward_char_pair_simd()
6010 int i, max, from; in fast_forward_first_n_chars() local
6023 max = scan_prefix(common, common->start, chars, MAX_N_CHARS, &rec_count); in fast_forward_first_n_chars()
6025 if (max < 1) in fast_forward_first_n_chars()
6029 for (i = 0; i < max; i++) in fast_forward_first_n_chars()
6053 if (JIT_HAS_FAST_FORWARD_CHAR_PAIR_SIMD && check_fast_forward_char_pair_simd(common, chars, max)) in fast_forward_first_n_chars()
6061 for (i = 0; i <= max; i++) in fast_forward_first_n_chars()
6069 if (i < max && chars[i].count < 255) in fast_forward_first_n_chars()
6107 for (i = 0; i < max; i++) in fast_forward_first_n_chars()
6138 OP2(SLJIT_SUB | SLJIT_SET_LESS, STR_END, 0, STR_END, 0, SLJIT_IMM, IN_UCHARS(max)); in fast_forward_first_n_chars()
6145 OP2(SLJIT_SUB | SLJIT_SET_LESS, STR_END, 0, STR_END, 0, SLJIT_IMM, IN_UCHARS(max)); in fast_forward_first_n_chars()
6219 OP2(SLJIT_ADD, STR_END, 0, STR_END, 0, SLJIT_IMM, IN_UCHARS(max)); in fast_forward_first_n_chars()
7509 sljit_uw c, charoffset, max = 256, min = READ_CHAR_MAX; in compile_xclass_matchingpath() local
7542 if (c > max) max = c; in compile_xclass_matchingpath()
7554 if (c > max) max = c; in compile_xclass_matchingpath()
7569 if (*other_cases > max) max = *other_cases; in compile_xclass_matchingpath()
7576 max = READ_CHAR_MAX; in compile_xclass_matchingpath()
7649 read_char(common, min, max, backtracks, READ_CHAR_UPDATE_STR_PTR); in compile_xclass_matchingpath()
7653 read_char(common, min, max, (unicode_status & XCLASS_NEEDS_UCD) ? backtracks : NULL, 0); in compile_xclass_matchingpath()
7655 read_char(common, min, max, NULL, 0); in compile_xclass_matchingpath()
7682 … (cc[-1] & XCL_NOT) == 0 ? backtracks : &found, CMP(SLJIT_GREATER, TMP2, 0, SLJIT_IMM, max - min)); in compile_xclass_matchingpath()
9437 int min = 0, max = 0; in compile_ref_iterator_matchingpath() local
9455 max = 0; in compile_ref_iterator_matchingpath()
9461 max = 0; in compile_ref_iterator_matchingpath()
9467 max = 1; in compile_ref_iterator_matchingpath()
9473 max = GET2(cc, 1 + IMM2_SIZE + 1 + IMM2_SIZE); in compile_ref_iterator_matchingpath()
9526 if (min > 1 || max > 1) in compile_ref_iterator_matchingpath()
9534 if (min > 1 || max > 1) in compile_ref_iterator_matchingpath()
9541 if (max > 1) in compile_ref_iterator_matchingpath()
9543 jump = CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, max); in compile_ref_iterator_matchingpath()
9551 if (max == 0) in compile_ref_iterator_matchingpath()
9607 if (max > 0) in compile_ref_iterator_matchingpath()
9608 …cktrack->topbacktracks, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(STACK_TOP), STACK(1), SLJIT_IMM, max)); in compile_ref_iterator_matchingpath()
9622 else if (max > 0) in compile_ref_iterator_matchingpath()
11289 …*common, PCRE2_SPTR cc, PCRE2_UCHAR *opcode, PCRE2_UCHAR *type, sljit_u32 *max, sljit_u32 *exact, … in get_iterator_parameters() argument
11358 *max = GET2(cc, (class_len + IMM2_SIZE)); in get_iterator_parameters()
11361 if (*max == 0) in get_iterator_parameters()
11370 *max -= *exact; in get_iterator_parameters()
11371 if (*max == 0) in get_iterator_parameters()
11373 else if (*max == 1) in get_iterator_parameters()
11414 *max = GET2(cc, 0); in get_iterator_parameters()
11440 sljit_u32 max = 0, exact; in compile_iterator_matchingpath() local
11478 cc = get_iterator_parameters(common, cc, &opcode, &type, &max, &exact, &end); in compile_iterator_matchingpath()
11551 OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), POSSESSIVE0, SLJIT_IMM, max); in compile_iterator_matchingpath()
11604 OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(max)); in compile_iterator_matchingpath()
11669 OP1(SLJIT_MOV, tmp_base, tmp_offset, SLJIT_IMM, max + 1); in compile_iterator_matchingpath()
11744 OP1(SLJIT_MOV, tmp_base, tmp_offset, SLJIT_IMM, max); in compile_iterator_matchingpath()
11805 OP1(SLJIT_MOV, base, offset1, SLJIT_IMM, max + 1); in compile_iterator_matchingpath()
11879 OP1(SLJIT_MOV, tmp_base, tmp_offset, SLJIT_IMM, max); in compile_iterator_matchingpath()
11897 OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(max)); in compile_iterator_matchingpath()
11913 OP1(SLJIT_MOV, tmp_base, tmp_offset, SLJIT_IMM, max); in compile_iterator_matchingpath()
12423 sljit_u32 max = 0, exact; in compile_iterator_backtrackingpath() local
12433 cc = get_iterator_parameters(common, cc, &opcode, &type, &max, &exact, &end); in compile_iterator_backtrackingpath()