muu/countr.h file

Contains the definitions of muu::countr_zero() and muu::countr_one().

Namespaces

namespace muu
The root namespace for all muu functions and types.

Functions

template <typename T>
auto countr_one(T val) -> int constexpr noexcept
Counts the number of consecutive 1 bits, starting from the right.
template <typename T>
auto countr_zero(T val) -> int constexpr noexcept
Counts the number of consecutive 0 bits, starting from the right.