MCPcopy Create free account
hub / github.com/FastLED/FastLED / flip

Method flip

src/fl/stl/bitset_dynamic.h:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 FL_DISABLE_WARNING_PUSH
213 FL_DISABLE_WARNING_NULL_DEREFERENCE
214 void flip(fl::u32 pos) FL_NOEXCEPT {
215 if (_blocks && pos < _size) {
216 const fl::u32 idx = pos / bits_per_block;
217 const fl::u32 off = pos % bits_per_block;
218 _blocks[idx] ^= (static_cast<block_type>(1) << off);
219 }
220 }
221 FL_DISABLE_WARNING_POP
222
223 // Flip all bits

Callers 4

operator~Method · 0.80
bitset_inlinedClass · 0.80
operator~Method · 0.80
FL_TEST_FILEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected