21 #include "../basic_types.h"
32 #ifdef BEATMUP_PLATFORM_64BIT_
64 for (
auto &_ :
bits) _ = 0;
67 inline void set(
size_t i,
bool value =
true) {
75 inline bool all()
const {
81 return (~(
bits.back() & ((
_1_ << rem) - 1))) == 0;
85 inline bool any()
const {
91 return (
bits.back() & ((
_1_ << rem) - 1)) > 0;
97 for (
size_t i = 0; i <
size; ++i)
bool getBit(size_t i) const
Bitset(size_t size, bool value)
bool operator[](size_t i) const
void set(size_t i, bool value=true)
static const bits_t ALL_ONES
static const size_t PACK_SIZE
std::vector< bits_t > bits
#define BEATMUP_ASSERT_DEBUG(C)
#define ceili(x, y)
integer division x/y with ceiling