jaulib v1.4.1-17-gd77ace3-dirty
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::impl Namespace Reference

Functions

template<typename... Args>
void dbgPrint0 (FILE *out, bool addErrno, bool addBacktrace, std::string_view format, const Args &...args) noexcept
 
template<typename... Args>
void dbgPrint1 (FILE *out, bool printPrefix, const char *msg, std::string_view format, const Args &...args) noexcept
 
template<typename... Args>
void dbgPrint2 (FILE *out, const char *msg, bool addErrno, bool addBacktrace, const char *func, const char *file, const int line, std::string_view format, const Args &...args) noexcept
 
constexpr uint32_t get_host_order () noexcept
 
bool runtime_eval (bool v)
 

Variables

static constexpr std::array< uint8_t, 256 > BitRevTable256
 

Function Documentation

◆ get_host_order()

uint32_t jau::impl::get_host_order ( )
constexprnoexcept

Definition at line 204 of file byte_util.hpp.

◆ runtime_eval()

bool jau::impl::runtime_eval ( bool v)
inline

Definition at line 559 of file cpp_lang_util.hpp.

Here is the caller graph for this function:

◆ dbgPrint0()

template<typename... Args>
void jau::impl::dbgPrint0 ( FILE * out,
bool addErrno,
bool addBacktrace,
std::string_view format,
const Args &... args )
noexcept

Definition at line 50 of file debug.hpp.

Here is the caller graph for this function:

◆ dbgPrint1()

template<typename... Args>
void jau::impl::dbgPrint1 ( FILE * out,
bool printPrefix,
const char * msg,
std::string_view format,
const Args &... args )
noexcept

Definition at line 71 of file debug.hpp.

◆ dbgPrint2()

template<typename... Args>
void jau::impl::dbgPrint2 ( FILE * out,
const char * msg,
bool addErrno,
bool addBacktrace,
const char * func,
const char * file,
const int line,
std::string_view format,
const Args &... args )
noexcept

Definition at line 91 of file debug.hpp.

Variable Documentation

◆ BitRevTable256

std::array<uint8_t, 256> jau::impl::BitRevTable256
staticconstexpr
Initial value:
=
[]() constexpr -> std::array<uint8_t, 256> {
using namespace jau::int_literals;
std::array<uint8_t, 256> result{};
for (size_t i = 0; i < 256; ++i) {
result[i] = ( (i * 0x80200802_u64) & 0x0884422110_u64 ) * 0x0101010101_u64 >> 32;
}
return result;
}()
See also
https://graphics.stanford.edu/~seander/bithacks.html#BitReverseTable

Definition at line 755 of file byte_util.hpp.