We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24783bc commit beaa6e8Copy full SHA for beaa6e8
grape/utils/bitset.h
@@ -25,10 +25,10 @@ limitations under the License.
25
#include "thread_pool.h"
26
27
#define WORD_SIZE(n) (((n) + 63ul) >> 6)
28
-#define BYTE_SIZE(n) (((n) + 63ul) >> 3)
+#define BYTE_SIZE(n) (WORD_SIZE(n) * sizeof(uint64_t))
29
30
#define WORD_INDEX(i) ((i) >> 6)
31
-#define BIT_OFFSET(i) ((i) &0x3f)
+#define BIT_OFFSET(i) ((i) & 0x3f)
32
33
#define ROUND_UP(i) (((i) + 63ul) & (~63ul))
34
#define ROUND_DOWN(i) ((i) & (~63ul))
0 commit comments