From c98c6f748772fe14509b7f13357617a805419e4e Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 10 May 2007 21:29:20 +0000 Subject: [PATCH] Add declarations for bitset_andnot(), bitset_or() and bitset_xor() to support VA [r13774] --- ir/adt/bitset.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ir/adt/bitset.h b/ir/adt/bitset.h index b1936a3ea..cdda203f1 100644 --- a/ir/adt/bitset.h +++ b/ir/adt/bitset.h @@ -505,6 +505,30 @@ static INLINE void bitset_debug_fprint(FILE *file, const bitset_t *bs) fprintf(file, " " BITSET_UNIT_FMT, bs->data[i]); } +/** + * Perform tgt = tgt \ src operation. + * @param tgt The target bitset. + * @param src The source bitset. + * @return the tgt set. + */ +static INLINE bitset_t *bitset_andnot(bitset_t *tgt, const bitset_t *src); + +/** + * Perform Union, tgt = tgt u src operation. + * @param tgt The target bitset. + * @param src The source bitset. + * @return the tgt set. + */ +static INLINE bitset_t *bitset_or(bitset_t *tgt, const bitset_t *src); + +/** + * Perform tgt = tgt ^ ~src operation. + * @param tgt The target bitset. + * @param src The source bitset. + * @return the tgt set. + */ +static INLINE bitset_t *bitset_xor(bitset_t *tgt, const bitset_t *src); + /* * Here, the binary operations follow. * And, Or, And Not, Xor are available. -- 2.20.1