X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fadt%2Fraw_bitset.h;h=1426b137a08a6b6131bbe77e694abbc803b92fbb;hb=f7a0dee11313faad6f2ff54edc8eaadabd03e433;hp=619e676cdc89b09d30d6697db0e4d0533a5afac5;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm 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. *