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

◆ flip() [2/2]

template<uint32_t N>
BitsetFixed & fl::BitsetFixed< N >::flip ( uint32_t pos)
inline

Flips (toggles) the bit at position pos.

Definition at line 85 of file bitset.h.

85 {
86 if (pos < N) {
89 _blocks[idx] ^= (block_type(1) << off);
90 }
91 return *this;
92 }
block_type _blocks[block_count]
Definition bitset.h:29
uint64_t block_type
Definition bitset.h:26
static constexpr uint32_t bits_per_block
Definition bitset.h:23
A simple fixed-size Bitset implementation similar to std::Bitset.
Definition bitset.h:21

References BitsetFixed(), _blocks, bits_per_block, and pos.

+ Here is the call graph for this function: