Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::efloat_storage Namespace Reference

Classes

struct  block_cache
struct  cache_reaper
class  scratch_limbs

Typedefs

using limb_t = std::uint64_t

Functions

cache_reaper & reaper () noexcept
constexpr void copy_limbs (limb_t *d, const limb_t *s, std::size_t n) noexcept
constexpr void zero_limbs (limb_t *d, std::size_t n) noexcept
constexpr std::uint32_t block_capacity (std::size_t n) noexcept
limb_t * take_block (std::uint32_t capacity)
void give_block (limb_t *b, std::uint32_t capacity) noexcept

Variables

block_cache cache {}

Typedef Documentation

◆ limb_t

Function Documentation

◆ block_capacity()

std::uint32_t sw::universal::efloat_storage::block_capacity ( std::size_t n)
constexprnoexcept

◆ copy_limbs()

void sw::universal::efloat_storage::copy_limbs ( limb_t * d,
const limb_t * s,
std::size_t n )
constexprnoexcept

◆ give_block()

void sw::universal::efloat_storage::give_block ( limb_t * b,
std::uint32_t capacity )
inlinenoexcept

◆ reaper()

cache_reaper & sw::universal::efloat_storage::reaper ( )
inlinenoexcept

◆ take_block()

limb_t * sw::universal::efloat_storage::take_block ( std::uint32_t capacity)
inline

◆ zero_limbs()

void sw::universal::efloat_storage::zero_limbs ( limb_t * d,
std::size_t n )
constexprnoexcept

Variable Documentation

◆ cache

block_cache sw::universal::efloat_storage::cache {}
inlinethread_local