codex
Loading...
Searching...
No Matches
table Namespace Reference

Functions

template<std::unsigned_integral T>
constexpr int popcnt (T n)
 

Variables

static constexpr auto t
 

Function Documentation

◆ popcnt()

template<std::unsigned_integral T>
int table::popcnt ( T n)
constexpr

Variable Documentation

◆ t

auto table::t
staticconstexpr
Initial value:
= [] {
std::array<int, 1 << CHAR_BIT> t;
for(unsigned i = 0; i != t.size(); ++i)
t[i] = std::popcount(i);
return t;
}()
#define t(a)
Definition std2.c:10