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

◆ count()

FL_DISABLE_WARNING_POP fl::u32 fl::bitset_dynamic::count ( ) const
inline

Definition at line 255 of file bitset_dynamic.h.

255 {
256 if (!_blocks) return 0;
257
258 fl::u32 result = 0;
259 for (fl::u32 i = 0; i < _block_count; ++i) {
260 result += static_cast<fl::u32>(__builtin_popcount(_blocks[i]));
261 }
262 return result;
263 }
fl::unique_ptr< block_type[]> _blocks
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References _block_count, _blocks, and FL_NOEXCEPT.