Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
1ef7eb66
Commit
1ef7eb66
authored
Apr 19, 2010
by
Matthias Braun
Browse files
don't hardcode 31
[r27419]
parent
36c9d192
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/adt/raw_bitset.h
View file @
1ef7eb66
...
...
@@ -45,7 +45,7 @@
#include "obst.h"
#define BITS_PER_ELEM (sizeof(unsigned) * 8)
#define BITSET_SIZE_ELEMS(size_bits) ((size_bits+
3
1)/BITS_PER_ELEM)
#define BITSET_SIZE_ELEMS(size_bits) ((size_bits+
BITS_PER_ELEM-
1)/BITS_PER_ELEM)
#define BITSET_SIZE_BYTES(size_bits) (BITSET_SIZE_ELEMS(size_bits) * sizeof(unsigned))
#define BITSET_ELEM(bitset,pos) bitset[pos / BITS_PER_ELEM]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment