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

Function popcount

src/fl/stl/bitset.h:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31// TODO: move this to fl/math.h
32template<typename IntType>
33inline fl::u8 popcount(IntType value) FL_NOEXCEPT {
34 return static_cast<fl::u8>(__builtin_popcount(value));
35}
36
37template<typename IntType>
38inline fl::u8 countr_zero(IntType value) FL_NOEXCEPT {

Callers 2

countMethod · 0.85
FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected