FastLED 3.9.15
Loading...
Searching...
No Matches

◆ flip() [2/2]

void fl::bitset_dynamic::flip ( uint32_t pos)
inlinenoexcept

Definition at line 184 of file bitset_dynamic.h.

184 {
185 if (pos < _size) {
186 const uint32_t idx = pos / bits_per_block;
187 const uint32_t off = pos % bits_per_block;
188 _blocks[idx] ^= (static_cast<block_type>(1) << off);
189 }
190 }
uint8_t pos
Definition Blur.ino:11
static constexpr uint32_t bits_per_block
block_type * _blocks

References _blocks, _size, bits_per_block, and pos.