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

◆ operator&()

bitset_dynamic fl::bitset_dynamic::operator& ( const bitset_dynamic & other) const
inline

Definition at line 272 of file bitset_dynamic.h.

272 {
273 bitset_dynamic result(_size);
274 uint32_t min_blocks = MIN(_block_count, other._block_count);
275
276 for (uint32_t i = 0; i < min_blocks; ++i) {
277 result._blocks[i] = _blocks[i] & other._blocks[i];
278 }
279
280 return result;
281 }
block_type * _blocks
bitset_dynamic()=default
#define MIN(a, b)
Definition math_macros.h:15

References bitset_dynamic(), _block_count, _blocks, _size, and MIN.

+ Here is the call graph for this function: