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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::detail

Functions

template<typename FpType>
constexpr int sw::universal::detail::series_stop_exp (std::size_t wdepth)
template<typename FpType>
ZBCL< FpType > sw::universal::detail::take_while_above (ZBCL< FpType > z, int floor_exp)
template<typename FpType>
series< FpType > sw::universal::detail::ops_term_stream (ZBCL< FpType > power, ZBCL< FpType > step, double denom, int floor_exp)
template<typename FpType>
ZBCL< FpType > sw::universal::detail::odd_power_series (ZBCL< FpType > x, bool alternating, std::size_t depth)
template<typename FpType>
series< FpType > sw::universal::detail::e_term_stream (ZBCL< FpType > term, double n, int floor_exp)
template<typename FpType, typename Gen>
ZBCL< FpType > sw::universal::detail::memoize_by_depth (std::vector< ZBCL< FpType > > &cache, std::size_t depth, Gen compute)
template<typename FpType>
ZBCL< FpType > sw::universal::e_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::e_zbcl (std::size_t depth=32)
template<typename FpType>
ZBCL< FpType > sw::universal::ln2_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::ln2_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::ln10_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::ln10_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::log2_10_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::log2_10_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::pi_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::pi_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::sqrt2_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::sqrt2_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::sqrt3_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::sqrt3_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::sqrt5_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::sqrt5_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::phi_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::phi_zbcl (std::size_t depth=16)
template<typename FpType>
ZBCL< FpType > sw::universal::euler_gamma_zbcl_compute (std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::euler_gamma_zbcl (std::size_t depth=16)

Variables

constexpr std::size_t sw::universal::detail::kSeriesGuard = 4
constexpr std::size_t sw::universal::detail::kConstantMemoMaxDepth = 256