mirror of
https://github.com/espressif/openthread.git
synced 2026-07-05 20:00:23 +00:00
ef9c8de3cd
This commit replaces the template function `CountBitsInMask<UintType>` with a non-template function `CountBitsInMask(uint32_t)` in `bit_utils.hpp` and moves its implementation to `bit_utils.cpp`. Un-inlining this helper function avoids template instantiation overhead and reduces binary size across translation units. Small integer arguments (`uint8_t`, `uint16_t`) automatically promote to `uint32_t`, preserving existing functionality.