tlx
Loading...
Searching...
No Matches
ctz.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  tlx

Functions

template<typename Integral>
static unsigned ctz_template (Integral x)
 ctz (count trailing zeros) - generic implementation
template<typename Integral>
unsigned ctz (Integral x)
template<>
unsigned ctz< int > (int i)
 ctz (count trailing zeros)
template<>
unsigned ctz< unsigned > (unsigned i)
 ctz (count trailing zeros)
template<>
unsigned ctz< long > (long i)
 ctz (count trailing zeros)
template<>
unsigned ctz< unsigned long > (unsigned long i)
 ctz (count trailing zeros)
template<>
unsigned ctz< long long > (long long i)
 ctz (count trailing zeros)
template<>
unsigned ctz< unsigned long long > (unsigned long long i)
 ctz (count trailing zeros)