From: Matthias Braun Date: Wed, 30 Apr 2008 12:07:30 +0000 (+0000) Subject: forgot to commit rbitset_requal X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dfe67558c08ab2a6fe5b82a2ab0cd7e366436a0c;p=libfirm forgot to commit rbitset_requal [r19468] --- diff --git a/include/libfirm/adt/raw_bitset.h b/include/libfirm/adt/raw_bitset.h index 619e676cd..1426b137a 100644 --- a/include/libfirm/adt/raw_bitset.h +++ b/include/libfirm/adt/raw_bitset.h @@ -300,6 +300,18 @@ static INLINE void rbitset_xor(unsigned *bitset1, const unsigned *bitset2, } } +static INLINE int rbitset_equal(const unsigned *bitset1, + const unsigned *bitset2, size_t size) +{ + unsigned i, n = BITSET_SIZE_ELEMS(size); + + for(i = 0; i < n; ++i) { + if(bitset1[i] != bitset2[i]) + return 0; + } + return 1; +} + /** * Copy a raw bitset into an bitset. *