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

◆ operator&()

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

Definition at line 371 of file bitset_dynamic.h.

371 {
373
374 if (!_blocks || !other._blocks || !result._blocks) {
375 return result;
376 }
377
378 fl::u32 min_blocks = fl::min(_block_count, other._block_count);
379
380 for (fl::u32 i = 0; i < min_blocks; ++i) {
381 result._blocks[i] = _blocks[i] & other._blocks[i];
382 }
383
384 return result;
385 }
fl::unique_ptr< block_type[]> _blocks
bitset_dynamic()=default
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
Definition math.h:71
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References bitset_dynamic(), _block_count, _blocks, _size, FL_NOEXCEPT, and fl::min().

+ Here is the call graph for this function: