Home | History | Annotate | Download | only in lib

Lines Matching refs:DST

159 #define BITSET_CHECK2_(DST, SRC) \
160 if (!BITSET_COMPATIBLE_ (DST, SRC)) abort ();
162 #define BITSET_CHECK3_(DST, SRC1, SRC2) \
163 if (!BITSET_COMPATIBLE_ (DST, SRC1) \
164 || !BITSET_COMPATIBLE_ (DST, SRC2)) abort ();
166 #define BITSET_CHECK4_(DST, SRC1, SRC2, SRC3) \
167 if (!BITSET_COMPATIBLE_ (DST, SRC1) || !BITSET_COMPATIBLE_ (DST, SRC2) \
168 || !BITSET_COMPATIBLE_ (DST, SRC3)) abort ();
171 /* Redefine number of bits in bitset DST. */
172 #define BITSET_RESIZE_(DST, SIZE) (DST)->b.vtable->resize (DST, SIZE)
181 #define BITSET_TYPE_(DST) (DST)->b.vtable->type
183 /* Set bit BITNO in bitset DST. */
184 #define BITSET_SET_(DST, BITNO) (DST)->b.vtable->set (DST, BITNO)
186 /* Reset bit BITNO in bitset DST. */
187 #define BITSET_RESET_(DST, BITNO) (DST)->b.vtable->reset (DST, BITNO)
189 /* Toggle bit BITNO in bitset DST. */
190 #define BITSET_TOGGLE_(DST, BITNO) (DST)->b.vtable->toggle (DST, BITNO)
203 /* DST = ~0. */
204 #define BITSET_ONES_(DST) (DST)->b.vtable->ones (DST)
206 /* DST = 0. */
207 #define BITSET_ZERO_(DST) (DST)->b.vtable->zero (DST)
211 /* DST = SRC. */
212 #define BITSET_COPY_(DST, SRC) (SRC)->b.vtable->copy (DST, SRC)
214 /* Return DST & SRC == 0. */
215 #define BITSET_DISJOINT_P_(DST, SRC) (SRC)->b.vtable->disjoint_p (DST, SRC)
217 /* Return DST == SRC. */
218 #define BITSET_EQUAL_P_(DST, SRC) (SRC)->b.vtable->equal_p (DST, SRC)
220 /* DST = ~SRC. */
221 #define BITSET_NOT_(DST, SRC) (SRC)->b.vtable->not_ (DST, SRC)
223 /* Return DST == DST | SRC. */
224 #define BITSET_SUBSET_P_(DST, SRC) (SRC)->b.vtable->subset_p (DST, SRC)
227 /* DST = SRC1 & SRC2. */
228 #define BITSET_AND_(DST, SRC1, SRC2) (SRC1)->b.vtable->and_ (DST, SRC1, SRC2)
229 #define BITSET_AND_CMP_(DST, SRC1, SRC2) (SRC1)->b.vtable->and_cmp (DST, SRC1, SRC2)
231 /* DST = SRC1 & ~SRC2. */
232 #define BITSET_ANDN_(DST, SRC1, SRC2) (SRC1)->b.vtable->andn (DST, SRC1, SRC2)
233 #define BITSET_ANDN_CMP_(DST, SRC1, SRC2) (SRC1)->b.vtable->andn_cmp (DST, SRC1, SRC2)
235 /* DST = SRC1 | SRC2. */
236 #define BITSET_OR_(DST, SRC1, SRC2) (SRC1)->b.vtable->or_ (DST, SRC1, SRC2)
237 #define BITSET_OR_CMP_(DST, SRC1, SRC2) (SRC1)->b.vtable->or_cmp (DST, SRC1, SRC2)
239 /* DST = SRC1 ^ SRC2. */
240 #define BITSET_XOR_(DST, SRC1, SRC2) (SRC1)->b.vtable->xor_ (DST, SRC1, SRC2)
241 #define BITSET_XOR_CMP_(DST, SRC1, SRC2) (SRC1)->b.vtable->xor_cmp (DST, SRC1, SRC2)
245 /* DST = (SRC1 & SRC2) | SRC3. Return non-zero if
246 DST != (SRC1 & SRC2) | SRC3. */
247 #define BITSET_AND_OR_(DST, SRC1, SRC2, SRC3) \
248 (SRC1)->b.vtable->and_or (DST, SRC1, SRC2, SRC3)
249 #define BITSET_AND_OR_CMP_(DST, SRC1, SRC2, SRC3) \
250 (SRC1)->b.vtable->and_or_cmp (DST, SRC1, SRC2, SRC3)
252 /* DST = (SRC1 & ~SRC2) | SRC3. Return non-zero if
253 DST != (SRC1 & ~SRC2) | SRC3. */
254 #define BITSET_ANDN_OR_(DST, SRC1, SRC2, SRC3) \
255 (SRC1)->b.vtable->andn_or (DST, SRC1, SRC2, SRC3)
256 #define BITSET_ANDN_OR_CMP_(DST, SRC1, SRC2, SRC3) \
257 (SRC1)->b.vtable->andn_or_cmp (DST, SRC1, SRC2, SRC3)
259 /* DST = (SRC1 | SRC2) & SRC3. Return non-zero if
260 DST != (SRC1 | SRC2) & SRC3. */
261 #define BITSET_OR_AND_(DST, SRC1, SRC2, SRC3) \
262 (SRC1)->b.vtable->or_and (DST, SRC1, SRC2, SRC3)
263 #define BITSET_OR_AND_CMP_(DST, SRC1, SRC2, SRC3) \
264 (SRC1)->b.vtable->or_and_cmp (DST, SRC1, SRC2, SRC3)