Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
zorder_knn::detail Namespace Reference

Classes

struct  significand
struct  significand< float >
struct  significand< double >

Functions

template<typename To, typename From>
constexpr To constexpr_bit_cast (const From &from)
uint32_t FloatToUInt (float x)
uint64_t FloatToUInt (double x)
int FloatExp (uint32_t xi)
int FloatExp (uint64_t xi)
auto FloatSig (uint32_t xi) -> decltype(xi)
auto FloatSig (uint64_t xi) -> decltype(xi)
int8_t UIntLogBase2 (uint32_t x)
int8_t UIntLogBase2 (uint64_t x)
template<typename Scalar>
auto FloatXorMsb (Scalar p, Scalar q) -> decltype(FloatExp(FloatToUInt(p)))

Variables

constexpr int8_t log0_nan = Kokkos::Experimental::finite_min_v<int8_t>
static constexpr int8_t log_base2_table [256]

Function Documentation

◆ constexpr_bit_cast()

template<typename To, typename From>
To zorder_knn::detail::constexpr_bit_cast ( const From & from)
constexpr

◆ FloatToUInt() [1/2]

uint32_t zorder_knn::detail::FloatToUInt ( float x)

◆ FloatToUInt() [2/2]

uint64_t zorder_knn::detail::FloatToUInt ( double x)

◆ FloatExp() [1/2]

int zorder_knn::detail::FloatExp ( uint32_t xi)

◆ FloatExp() [2/2]

int zorder_knn::detail::FloatExp ( uint64_t xi)

◆ FloatSig() [1/2]

auto zorder_knn::detail::FloatSig ( uint32_t xi) -> decltype(xi)

◆ FloatSig() [2/2]

auto zorder_knn::detail::FloatSig ( uint64_t xi) -> decltype(xi)

◆ UIntLogBase2() [1/2]

int8_t zorder_knn::detail::UIntLogBase2 ( uint32_t x)

◆ UIntLogBase2() [2/2]

int8_t zorder_knn::detail::UIntLogBase2 ( uint64_t x)

◆ FloatXorMsb()

template<typename Scalar>
auto zorder_knn::detail::FloatXorMsb ( Scalar p,
Scalar q ) -> decltype(FloatExp(FloatToUInt(p)))

Variable Documentation

◆ log0_nan

int8_t zorder_knn::detail::log0_nan = Kokkos::Experimental::finite_min_v<int8_t>
constexpr

◆ log_base2_table

int8_t zorder_knn::detail::log_base2_table[256]
staticconstexpr
Initial value:
= {
log0_nan, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7}
constexpr int8_t log0_nan
Definition zmort.hpp:122