21 #include <spot/misc/common.hh>
29 template<
typename Type,
30 typename = std::enable_if_t<std::is_unsigned<Type>::value>>
31 inline constexpr
unsigned clz(Type n) noexcept
33 unsigned res = CHAR_BIT *
sizeof(Type);
44 inline constexpr
unsigned clz(
unsigned n) noexcept
46 return __builtin_clz(n);
50 inline constexpr
unsigned clz(
unsigned long n) noexcept
52 return __builtin_clzl(n);
56 inline constexpr
unsigned clz(
unsigned long long n) noexcept
58 return __builtin_clzll(n);
Definition: automata.hh:26