45 return (
BitInt(1) << n) - 1;
57 const int64_t end = start + size;
62 return ((
BitInt(1) << end) - 1) & ~((
BitInt(1) << start) - 1);
69 return BitInt(1) << bit_index;
113 const BitInt value = *int_;
114 const BitInt masked_value = value & mask_;
115 return masked_value != 0;
118 operator bool()
const
154 bit_ref.mask_ = mask_;
163 const BitInt value = *int_;
164 const BitInt masked_value = value & mask_;
165 return masked_value != 0;
168 operator bool()
const
193 void set(
const bool value)
218 | (mask_ & ~(value_int - 1));
244using bits::MutableBitRef;
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)
std::ostream & operator<<(std::ostream &stream, const AssetCatalogPath &path_to_append)
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)
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)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
BMesh const char void * data