codex
Loading...
Searching...
No Matches
popcnt.cpp File Reference
#include <array>
#include <bit>
#include <climits>
#include <concepts>
#include <cstdint>
#include <limits>
#include <numeric>
#include <span>
Include dependency graph for popcnt.cpp:

Namespaces

namespace  linear
 
namespace  shift
 
namespace  blsr
 
namespace  lib
 
namespace  table
 
namespace  sum
 
namespace  rot
 
namespace  bin
 
namespace  csa
 

Typedefs

using u8 = std::uint8_t
 
using u32 = std::uint32_t
 
using U = u8
 

Functions

template<std::unsigned_integral T>
constexpr int linear::popcnt (T n)
 
template<std::unsigned_integral T>
constexpr int shift::popcnt (T n)
 
template<std::unsigned_integral T>
constexpr T blsr::blsr (T n)
 
template<std::unsigned_integral T>
constexpr int blsr::popcnt (T n)
 
template<std::unsigned_integral T>
constexpr int lib::popcnt (T n)
 
template<std::unsigned_integral T>
constexpr int table::popcnt (T n)
 
template<std::unsigned_integral T>
constexpr int sum::popcnt (T n)
 
template<std::unsigned_integral T>
constexpr int rot::popcnt (T n)
 
template<std::unsigned_integral T, unsigned w>
constexpr T bin::mask (void)
 
template<std::unsigned_integral T, unsigned w = 1>
constexpr int bin::popcnt (T n)
 
template<std::unsigned_integral T>
constexpr T csa::csa (T *t0, T t1, T t2)
 
template<std::unsigned_integral T>
constexpr int csa::popcnt (std::span< const T > s)
 
template<typename U , int f>
bool test (void)
 
template<typename U , int f>
bool test_array (void)
 
int main (void)
 

Variables

static constexpr auto table::t
 

Typedef Documentation

◆ U

using U = u8

◆ u32

using u32 = std::uint32_t

◆ u8

using u8 = std::uint8_t

Function Documentation

◆ main()

int main ( void )
Here is the call graph for this function:

◆ test()

template<typename U , int f>
bool test ( void )
Here is the caller graph for this function:

◆ test_array()

template<typename U , int f>
bool test_array ( void )
Here is the caller graph for this function: