projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f600524
)
forgot to commit rbitset_requal
author
Matthias Braun
<matze@braunis.de>
Wed, 30 Apr 2008 12:07:30 +0000
(12:07 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 30 Apr 2008 12:07:30 +0000
(12:07 +0000)
[r19468]
include/libfirm/adt/raw_bitset.h
patch
|
blob
|
history
diff --git
a/include/libfirm/adt/raw_bitset.h
b/include/libfirm/adt/raw_bitset.h
index
619e676
..
1426b13
100644
(file)
--- 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.
*