21#include <spot/misc/common.hh>
27 template<
typename Type,
28 typename = std::enable_if_t<std::is_unsigned<Type>::value>>
29 inline constexpr unsigned clz(Type n)
noexcept
31 unsigned res = CHAR_BIT *
sizeof(Type);
42 inline constexpr unsigned clz(
unsigned n)
noexcept
44 return __builtin_clz(n);
48 inline constexpr unsigned clz(
unsigned long n)
noexcept
50 return __builtin_clzl(n);
54 inline constexpr unsigned clz(
unsigned long long n)
noexcept
56 return __builtin_clzll(n);
Definition automata.hh:26
Please direct any
question,
comment, or
bug report to the Spot mailing list at
spot@lrde.epita.fr.
Generated on for spot by
1.15.0