Lines Matching refs:bs

143 #define BITSET_IS_EMPTY(bs,empty) do {\  argument
147 if ((bs)[i] != 0) {\
154 bitset_set_range(BitSetRef bs, int from, int to) in bitset_set_range() argument
158 BITSET_SET_BIT(bs, i); in bitset_set_range()
164 bitset_set_all(BitSetRef bs)
167 for (i = 0; i < BITSET_SIZE; i++) { bs[i] = ~((Bits )0); }
172 bitset_invert(BitSetRef bs) in bitset_invert() argument
175 for (i = 0; i < (int )BITSET_SIZE; i++) { bs[i] = ~(bs[i]); } in bitset_invert()
186 bitset_and(BitSetRef dest, BitSetRef bs) in bitset_and() argument
189 for (i = 0; i < (int )BITSET_SIZE; i++) { dest[i] &= bs[i]; } in bitset_and()
193 bitset_or(BitSetRef dest, BitSetRef bs) in bitset_or() argument
196 for (i = 0; i < (int )BITSET_SIZE; i++) { dest[i] |= bs[i]; } in bitset_or()
200 bitset_copy(BitSetRef dest, BitSetRef bs) in bitset_copy() argument
203 for (i = 0; i < (int )BITSET_SIZE; i++) { dest[i] = bs[i]; } in bitset_copy()
1132 BITSET_CLEAR(cc->bs); in initialize_cclass()
1163 BITSET_CLEAR(cc->bs); in node_new_cclass_by_codepoint_range()
1171 BITSET_SET_BIT(cc->bs, j); in node_new_cclass_by_codepoint_range()
1992 bsr1 = dest->bs; in and_cclass()
1995 bsr2 = cc->bs; in and_cclass()
2007 if (bsr1 != dest->bs) { in and_cclass()
2008 bitset_copy(dest->bs, bsr1); in and_cclass()
2009 bsr1 = dest->bs; in and_cclass()
2012 bitset_invert(dest->bs); in and_cclass()
2050 bsr1 = dest->bs; in or_cclass()
2053 bsr2 = cc->bs; in or_cclass()
2065 if (bsr1 != dest->bs) { in or_cclass()
2066 bitset_copy(dest->bs, bsr1); in or_cclass()
2067 bsr1 = dest->bs; in or_cclass()
2070 bitset_invert(dest->bs); in or_cclass()
3785 BITSET_SET_BIT(cc->bs, j); in add_ctype_to_cc_by_range()
3806 BITSET_SET_BIT(cc->bs, j); in add_ctype_to_cc_by_range()
3811 BITSET_SET_BIT(cc->bs, j); in add_ctype_to_cc_by_range()
3866 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3873 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3883 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3889 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3898 if (IS_CODE_SB_WORD(enc, c)) BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
3906 BITSET_SET_BIT(cc->bs, c); in add_ctype_to_cc()
4069 BITSET_SET_BIT(cc->bs, (int )(*vs)); in next_state_class()
4097 BITSET_SET_BIT(cc->bs, (int )(*vs)); in next_state_val()
4117 bitset_set_range(cc->bs, (int )*vs, (int )v); in next_state_val()
4134 bitset_set_range(cc->bs, (int )*vs, (int )(v < 0xff ? v : 0xff)); in next_state_val()
4489 BITSET_IS_EMPTY(cc->bs, is_empty); in parse_char_class()
4496 BITSET_SET_BIT(cc->bs, NEWLINE_CODE); in parse_char_class()
4943 bitset_invert(cc->bs); in clear_not_flag_cclass()
4974 BitSetRef bs; in i_apply_case_fold() local
4979 bs = cc->bs; in i_apply_case_fold()
4990 BITSET_SET_BIT(bs, *to); in i_apply_case_fold()
5001 BITSET_CLEAR_BIT(bs, *to); in i_apply_case_fold()
5004 BITSET_SET_BIT(bs, *to); in i_apply_case_fold()