43 return (
BitInt(1) << n) - 1;
60 return ((
BitInt(1) << end) - 1) & ~((
BitInt(1) << start) - 1);
67 return BitInt(1) << bit_index;
111 const BitInt value = *int_;
112 const BitInt masked_value = value & mask_;
113 return masked_value != 0;
116 operator bool()
const
152 bit_ref.mask_ = mask_;
161 const BitInt value = *int_;
162 const BitInt masked_value = value & mask_;
163 return masked_value != 0;
166 operator bool()
const
191 void set(
const bool value)
216 | (mask_ & ~(value_int - 1));
243using bits::MutableBitRef;
BMesh const char void * data
unsigned long long int uint64_t
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
BitRef(const BitInt *data, const int64_t bit_index)
friend class MutableBitRef
MutableBitRef(BitInt *data, const int64_t bit_index)
MutableBitRef & operator|=(const bool value)
void set(const bool value)
void set_branchless(const bool value)
MutableBitRef & operator&=(const bool value)
static constexpr BitInt BitIndexMask
static constexpr int64_t BitsPerInt
BitInt * int_containing_bit(BitInt *data, const int64_t bit_index)
static constexpr int64_t BitToIntIndexShift
BitInt mask_single_bit(const int64_t bit_index)
std::ostream & operator<<(std::ostream &stream, const BitRef &bit)
BitInt mask_last_n_bits(const int64_t n)
BitInt mask_first_n_bits(const int64_t n)
BitInt mask_range_bits(const int64_t start, const int64_t size)