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::detail Namespace Reference

Namespaces

namespace  cx
namespace  fma_detect

Classes

struct  is_binary_expansion_type
struct  is_binary_expansion_type< dd >
struct  is_binary_expansion_type< qd >
struct  is_binary_expansion_type< cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > >
struct  nonzero_lead
struct  scaled_log10
struct  tracked_impl
struct  tracked_impl< T, ErrorStrategy::Exact >
struct  tracked_impl< T, ErrorStrategy::Shadow >
struct  tracked_impl< T, ErrorStrategy::Bounded >
struct  tracked_impl< T, ErrorStrategy::Statistical >
struct  is_areal
struct  is_areal< areal< nbits, es, bt > >
struct  is_interval
struct  is_interval< interval< Scalar > >
struct  tracked_base_selector
struct  tracked_base_selector< T, Strategy, std::enable_if_t< is_areal< T >::value > >
struct  tracked_base_selector< T, Strategy, std::enable_if_t< is_interval< T >::value > >

Concepts

concept  double_expansion_castable

Typedefs

template<typename T, ErrorStrategy Strategy>
using tracked_base_t = typename tracked_base_selector<T, Strategy>::type

Enumerations

enum class  fixpnt_integral { trunc , round , floor , ceil }
enum class  quotient_position { exact , above , below , unknown }
 Where the true quotient sits relative to the rounded one. More...

Functions

template<ComplexCompatible T>
std::complex< double > to_std_complex (const complex< T > &c)
template<ComplexCompatible T>
complex< T > from_std_complex (const std::complex< double > &c)
bfloat16 bfloat16_cos_float_path (bfloat16 x)
bfloat16 bfloat16_cos_double_path (bfloat16 x)
bool bfloat16_cos_float_path_is_unreliable ()
template<typename Float, typename Target, typename Source>
constexpr Target cast_via (const Source &src) noexcept
template<typename Target, typename Source>
constexpr bool cast_via_double_expansion (const Source &src, Target &out) noexcept
template<typename T>
T eft_splitter ()
template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void two_sum_host (T a, T b, T &s, T &r)
template<>
void two_sum_host< double > (double a, double b, double &s, double &r)
template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void split_host (T a, T &hi, T &lo)
template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void two_prod_host (T a, T b, T &p, T &r)
template<>
void two_prod_host< double > (double a, double b, double &p, double &r)
template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void two_div_host (T a, T b, T &q, T &r)
template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void two_div_rem_host (T a, T b, T &q, T &rem)
constexpr bool is_inf_class (elreal_class c) noexcept
constexpr elreal_class negate_class (elreal_class c) noexcept
constexpr elreal_class inf_with_sign (int s) noexcept
template<typename FpType>
constexpr int series_stop_exp (std::size_t wdepth)
template<typename FpType>
ZBCL< FpType > take_while_above (ZBCL< FpType > z, int floor_exp)
template<typename FpType>
series< FpType > ops_term_stream (ZBCL< FpType > power, ZBCL< FpType > step, double denom, int floor_exp)
template<typename FpType>
ZBCL< FpType > odd_power_series (ZBCL< FpType > x, bool alternating, std::size_t depth)
template<typename FpType>
series< FpType > e_term_stream (ZBCL< FpType > term, double n, int floor_exp)
template<typename FpType, typename Gen>
ZBCL< FpType > memoize_by_depth (std::vector< ZBCL< FpType > > &cache, std::size_t depth, Gen compute)
template<typename FpType>
series< FpType > exp_term_stream (ZBCL< FpType > term, ZBCL< FpType > xr, double n, int floor_exp)
template<typename FpType>
series< FpType > sincos_term_stream (ZBCL< FpType > term, ZBCL< FpType > neg_t2, double a, int floor_exp)
template<typename FpType>
ZBCL< FpType > sin_series (ZBCL< FpType > t, std::size_t depth)
template<typename FpType>
ZBCL< FpType > cos_series (ZBCL< FpType > t, std::size_t depth)
template<typename FpType>
integer< 256, std::uint32_t > zbcl_round_to_int (const ZBCL< FpType > &q, std::size_t depth)
template<typename FpType>
ZBCL< FpType > int_to_zbcl (integer< 256, std::uint32_t > N)
template<typename FpType>
std::pair< ZBCL< FpType >, ZBCL< FpType > > sincos (ZBCL< FpType > x, std::size_t depth)
template<typename FpType>
elreal< FpType > elreal_special (double v, std::size_t d)
template<typename FpType>
elreal< FpType > elreal_nan (std::size_t d)
template<typename FpType>
elreal< FpType > elreal_inf (int sign, std::size_t d)
template<typename FpType>
int compare_magnitude_with_one (const elreal< FpType > &x)
template<typename FpType>
nonzero_lead< FpType > first_nonzero_block (ZBCL< FpType > s, std::size_t window)
template<typename FpType>
ZBCL< FpType > from_integer (unsigned long long magnitude, bool negative)
template<typename FpType>
bool is_integer (ZBCL< FpType > y, std::size_t window, bool &odd)
template<fixpnt_integral mode, unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
fixpnt< nbits, rbits, arithmetic, bt > to_integral (const fixpnt< nbits, rbits, arithmetic, bt > &x)
template<typename Policy>
constexpr double gauss_log_add (double a, double b)
constexpr unsigned cotransformation_default_split_j (unsigned f)
constexpr double pow2_double (unsigned e)
template<typename T>
constexpr bool has_limits ()
template<typename T>
constexpr long promotion_max_exponent ()
template<typename T>
constexpr long promotion_digits ()
template<typename T>
constexpr long promotion_min_exponent ()
template<typename T>
constexpr std::string_view promotion_type_name ()
template<typename T1, typename T2>
constexpr bool promotion_ranks_above ()
template<typename T>
auto has_fma_probe (int) -> std::enable_if_t< std::is_same_v< std::decay_t< decltype(fma(std::declval< const T & >(), std::declval< const T & >(), std::declval< const T & >()))>, T >, std::true_type >
constexpr scaled_log10 split_floor (std::int64_t k) noexcept
precision_point make_precision_point (double x, double ulp)
template<typename T>
constexpr unsigned precision_nbits ()
template<typename T>
double precision_minpos ()
template<typename T>
double precision_maxpos ()
template<typename T>
bool precision_spacing (const T &x, double maxpos, double &ulp)
template<typename T>
T next_up (T x) noexcept
template<typename T>
T next_down (T x) noexcept
template<typename T>
T two_sum_roundoff (T a, T b, T s) noexcept
 The exact roundoff of a + b, given the rounded sum s (Knuth's TwoSum).
template<typename T>
T add_down (T a, T b) noexcept
 a + b, rounded toward -infinity
template<typename T>
T add_up (T a, T b) noexcept
 a + b, rounded toward +infinity
template<typename T>
T sub_down (T a, T b) noexcept
template<typename T>
T sub_up (T a, T b) noexcept
template<typename T>
bool product_roundoff (T a, T b, T p, T &roundoff) noexcept
 The exact roundoff of a * b is fma(a, b, -p), which holds whenever the product neither overflows nor falls into the subnormal range; below the smallest normal the roundoff itself is no longer representable, so the sign cannot be trusted and the bound is widened unconditionally.
template<typename T>
T mul_down (T a, T b) noexcept
template<typename T>
T mul_up (T a, T b) noexcept
template<typename T>
quotient_position locate_quotient (T a, T b, T q) noexcept
 For a quotient q of a / b, fma(-q, b, a) is the exact residual a - q*b, and the true quotient lies above q exactly when that residual has the same sign as b.
template<typename T>
T div_down (T a, T b) noexcept
template<typename T>
T div_up (T a, T b) noexcept
template<typename T>
T sqrt_down (T x) noexcept
 sqrt(x) is exact when x - r*r is zero; otherwise the true root lies above r when r*r undershoots x.
template<typename T>
T sqrt_up (T x) noexcept
template<typename T>
T tracked_two_sum (T a, T b, T &r)
 two_sum: compute s + r = a + b exactly Returns the floating-point sum s, and stores the exact error in r
template<typename T>
T tracked_two_diff (T a, T b, T &r)
 two_diff: compute s + r = a - b exactly
template<typename T>
void tracked_split (T a, T &hi, T &lo)
 split: split a into high and low parts for two_prod
template<typename T>
T tracked_two_prod (T a, T b, T &r)
 two_prod: compute p + r = a * b exactly
template<typename T>
T tracked_two_sqr (T a, T &r)
 two_sqr: compute p + r = a * a exactly (optimized for squaring)
template<typename T>
T ulp_spacing (T x)
 Get the ULP (Unit in Last Place) of a floating-point value ULP is the spacing between adjacent floating-point values at this magnitude.
template<typename I>
std::string ubox_text (const I &x, int precision)
std::string html_escape (const std::string &s)
std::string fmt (long double v, int precision=4, bool sci=false)
void write_width_chart (std::ostream &o, const ubox_trace &t)
void write_step_strip (std::ostream &o, const ubox_trace &t, std::size_t i)
const char * ubox_style ()
void write_trace (std::ostream &o, const ubox_trace &t)
template<unsigned nbits, unsigned es, typename bt>
areal< nbits, es, bt > fma (const areal< nbits, es, bt > &, const areal< nbits, es, bt > &, const areal< nbits, es, bt > &)

Variables

constexpr unsigned intermediate_fraction_bits
template<typename T>
constexpr bool eft_has_fma_v = fma_detect::callable<T>
constexpr std::size_t kSeriesGuard = 4
constexpr std::size_t kConstantMemoMaxDepth = 256
constexpr double kExpReductionLimit = 4611686018427387904.0
constexpr std::size_t default_depth_e = 32
constexpr std::size_t default_depth_pi = 16
constexpr std::size_t default_depth_ln2 = 16
constexpr std::size_t default_depth_ln10 = 16
constexpr std::size_t default_depth_log2_10 = 16
constexpr std::size_t default_depth_sqrt2 = 16
constexpr std::size_t default_depth_sqrt3 = 16
constexpr std::size_t default_depth_sqrt5 = 16
constexpr std::size_t default_depth_phi = 16
constexpr std::size_t default_depth_euler_gamma = 16
template<typename T>
constexpr bool has_limits_v = has_limits<T>()
template<typename T>
std::false_type has_fma_probe (...)
constexpr std::int64_t log10_2_hi = 301029995LL
constexpr std::int64_t log10_2_lo = 663981195LL
constexpr std::int64_t split_scale = 1000000000LL
constexpr std::int64_t full_scale = 1000000000000000000LL
constexpr std::int64_t decimal_reach = 7200000000LL
constexpr int ubox_palette_size = 6

Typedef Documentation

◆ tracked_base_t

template<typename T, ErrorStrategy Strategy>
using sw::universal::detail::tracked_base_t = typename tracked_base_selector<T, Strategy>::type

Enumeration Type Documentation

◆ fixpnt_integral

Enumerator
trunc 
round 
floor 
ceil 

◆ quotient_position

Where the true quotient sits relative to the rounded one.

Enumerator
exact 
above 
below 
unknown 

Function Documentation

◆ add_down()

template<typename T>
T sw::universal::detail::add_down ( T a,
T b )
inlinenoexcept

a + b, rounded toward -infinity

◆ add_up()

template<typename T>
T sw::universal::detail::add_up ( T a,
T b )
inlinenoexcept

a + b, rounded toward +infinity

◆ bfloat16_cos_double_path()

bfloat16 sw::universal::detail::bfloat16_cos_double_path ( bfloat16 x)
inline

◆ bfloat16_cos_float_path()

bfloat16 sw::universal::detail::bfloat16_cos_float_path ( bfloat16 x)
inline

◆ bfloat16_cos_float_path_is_unreliable()

bool sw::universal::detail::bfloat16_cos_float_path_is_unreliable ( )
inline

◆ cast_via()

template<typename Float, typename Target, typename Source>
Target sw::universal::detail::cast_via ( const Source & src)
constexprnoexcept

◆ cast_via_double_expansion()

template<typename Target, typename Source>
bool sw::universal::detail::cast_via_double_expansion ( const Source & src,
Target & out )
constexprnoexcept

◆ compare_magnitude_with_one()

template<typename FpType>
int sw::universal::detail::compare_magnitude_with_one ( const elreal< FpType > & x)
inline

◆ cos_series()

template<typename FpType>
ZBCL< FpType > sw::universal::detail::cos_series ( ZBCL< FpType > t,
std::size_t depth )
inline

◆ cotransformation_default_split_j()

unsigned sw::universal::detail::cotransformation_default_split_j ( unsigned f)
constexpr

◆ div_down()

template<typename T>
T sw::universal::detail::div_down ( T a,
T b )
inlinenoexcept

◆ div_up()

template<typename T>
T sw::universal::detail::div_up ( T a,
T b )
inlinenoexcept

◆ e_term_stream()

template<typename FpType>
series< FpType > sw::universal::detail::e_term_stream ( ZBCL< FpType > term,
double n,
int floor_exp )
inline

◆ eft_splitter()

template<typename T>
T sw::universal::detail::eft_splitter ( )
inline

◆ elreal_inf()

template<typename FpType>
elreal< FpType > sw::universal::detail::elreal_inf ( int sign,
std::size_t d )
inline

◆ elreal_nan()

template<typename FpType>
elreal< FpType > sw::universal::detail::elreal_nan ( std::size_t d)
inline

◆ elreal_special()

template<typename FpType>
elreal< FpType > sw::universal::detail::elreal_special ( double v,
std::size_t d )
inline

◆ exp_term_stream()

template<typename FpType>
series< FpType > sw::universal::detail::exp_term_stream ( ZBCL< FpType > term,
ZBCL< FpType > xr,
double n,
int floor_exp )
inline

◆ first_nonzero_block()

template<typename FpType>
nonzero_lead< FpType > sw::universal::detail::first_nonzero_block ( ZBCL< FpType > s,
std::size_t window )
inline

◆ fma()

template<unsigned nbits, unsigned es, typename bt>
areal< nbits, es, bt > sw::universal::fma ( const areal< nbits, es, bt > & a,
const areal< nbits, es, bt > & b,
const areal< nbits, es, bt > & c )

◆ fmt()

std::string sw::universal::detail::fmt ( long double v,
int precision = 4,
bool sci = false )
inline

◆ from_integer()

template<typename FpType>
ZBCL< FpType > sw::universal::detail::from_integer ( unsigned long long magnitude,
bool negative )
inline

◆ from_std_complex()

template<ComplexCompatible T>
complex< T > sw::universal::detail::from_std_complex ( const std::complex< double > & c)

◆ gauss_log_add()

template<typename Policy>
double sw::universal::detail::gauss_log_add ( double a,
double b )
constexpr

◆ has_fma_probe()

template<typename T>
auto sw::universal::detail::has_fma_probe ( int ) ->std::enable_if_t< std::is_same_v< std::decay_t< decltype(fma(std::declval< constT & >(), std::declval< constT & >(), std::declval< constT & >()))>, T >, std::true_type >

◆ has_limits()

template<typename T>
bool sw::universal::detail::has_limits ( )
constexpr

◆ html_escape()

std::string sw::universal::detail::html_escape ( const std::string & s)
inline

◆ inf_with_sign()

elreal_class sw::universal::detail::inf_with_sign ( int s)
inlineconstexprnoexcept

◆ int_to_zbcl()

template<typename FpType>
ZBCL< FpType > sw::universal::detail::int_to_zbcl ( integer< 256, std::uint32_t > N)
inline

◆ is_inf_class()

bool sw::universal::detail::is_inf_class ( elreal_class c)
inlineconstexprnoexcept

◆ is_integer()

template<typename FpType>
bool sw::universal::detail::is_integer ( ZBCL< FpType > y,
std::size_t window,
bool & odd )
inline

◆ locate_quotient()

template<typename T>
quotient_position sw::universal::detail::locate_quotient ( T a,
T b,
T q )
inlinenoexcept

For a quotient q of a / b, fma(-q, b, a) is the exact residual a - q*b, and the true quotient lies above q exactly when that residual has the same sign as b.

The residual is not to be trusted for a subnormal quotient, as for the product.

◆ make_precision_point()

precision_point sw::universal::detail::make_precision_point ( double x,
double ulp )
inline

◆ memoize_by_depth()

template<typename FpType, typename Gen>
ZBCL< FpType > sw::universal::detail::memoize_by_depth ( std::vector< ZBCL< FpType > > & cache,
std::size_t depth,
Gen compute )
inline

◆ mul_down()

template<typename T>
T sw::universal::detail::mul_down ( T a,
T b )
inlinenoexcept

◆ mul_up()

template<typename T>
T sw::universal::detail::mul_up ( T a,
T b )
inlinenoexcept

◆ negate_class()

elreal_class sw::universal::detail::negate_class ( elreal_class c)
inlineconstexprnoexcept

◆ next_down()

template<typename T>
T sw::universal::detail::next_down ( T x)
inlinenoexcept

◆ next_up()

template<typename T>
T sw::universal::detail::next_up ( T x)
inlinenoexcept

◆ odd_power_series()

template<typename FpType>
ZBCL< FpType > sw::universal::detail::odd_power_series ( ZBCL< FpType > x,
bool alternating,
std::size_t depth )
inline

◆ ops_term_stream()

template<typename FpType>
series< FpType > sw::universal::detail::ops_term_stream ( ZBCL< FpType > power,
ZBCL< FpType > step,
double denom,
int floor_exp )
inline

◆ pow2_double()

double sw::universal::detail::pow2_double ( unsigned e)
constexpr

◆ precision_maxpos()

template<typename T>
double sw::universal::detail::precision_maxpos ( )

◆ precision_minpos()

template<typename T>
double sw::universal::detail::precision_minpos ( )

◆ precision_nbits()

template<typename T>
unsigned sw::universal::detail::precision_nbits ( )
constexpr

◆ precision_spacing()

template<typename T>
bool sw::universal::detail::precision_spacing ( const T & x,
double maxpos,
double & ulp )

◆ product_roundoff()

template<typename T>
bool sw::universal::detail::product_roundoff ( T a,
T b,
T p,
T & roundoff )
inlinenoexcept

The exact roundoff of a * b is fma(a, b, -p), which holds whenever the product neither overflows nor falls into the subnormal range; below the smallest normal the roundoff itself is no longer representable, so the sign cannot be trusted and the bound is widened unconditionally.

An exactly zero operand is exact.

◆ promotion_digits()

template<typename T>
long sw::universal::detail::promotion_digits ( )
constexpr

◆ promotion_max_exponent()

template<typename T>
long sw::universal::detail::promotion_max_exponent ( )
constexpr

◆ promotion_min_exponent()

template<typename T>
long sw::universal::detail::promotion_min_exponent ( )
constexpr

◆ promotion_ranks_above()

template<typename T1, typename T2>
bool sw::universal::detail::promotion_ranks_above ( )
constexpr

◆ promotion_type_name()

template<typename T>
std::string_view sw::universal::detail::promotion_type_name ( )
constexpr

◆ series_stop_exp()

template<typename FpType>
int sw::universal::detail::series_stop_exp ( std::size_t wdepth)
constexpr

◆ sin_series()

template<typename FpType>
ZBCL< FpType > sw::universal::detail::sin_series ( ZBCL< FpType > t,
std::size_t depth )
inline

◆ sincos()

template<typename FpType>
std::pair< ZBCL< FpType >, ZBCL< FpType > > sw::universal::detail::sincos ( ZBCL< FpType > x,
std::size_t depth )
inline

◆ sincos_term_stream()

template<typename FpType>
series< FpType > sw::universal::detail::sincos_term_stream ( ZBCL< FpType > term,
ZBCL< FpType > neg_t2,
double a,
int floor_exp )
inline

◆ split_floor()

scaled_log10 sw::universal::detail::split_floor ( std::int64_t k)
constexprnoexcept

◆ split_host()

template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void sw::universal::detail::split_host ( T a,
T & hi,
T & lo )
inline

◆ sqrt_down()

template<typename T>
T sw::universal::detail::sqrt_down ( T x)
inlinenoexcept

sqrt(x) is exact when x - r*r is zero; otherwise the true root lies above r when r*r undershoots x.

◆ sqrt_up()

template<typename T>
T sw::universal::detail::sqrt_up ( T x)
inlinenoexcept

◆ sub_down()

template<typename T>
T sw::universal::detail::sub_down ( T a,
T b )
inlinenoexcept

◆ sub_up()

template<typename T>
T sw::universal::detail::sub_up ( T a,
T b )
inlinenoexcept

◆ take_while_above()

template<typename FpType>
ZBCL< FpType > sw::universal::detail::take_while_above ( ZBCL< FpType > z,
int floor_exp )
inline

◆ to_integral()

template<fixpnt_integral mode, unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
fixpnt< nbits, rbits, arithmetic, bt > sw::universal::detail::to_integral ( const fixpnt< nbits, rbits, arithmetic, bt > & x)

◆ to_std_complex()

template<ComplexCompatible T>
std::complex< double > sw::universal::detail::to_std_complex ( const complex< T > & c)

◆ tracked_split()

template<typename T>
void sw::universal::detail::tracked_split ( T a,
T & hi,
T & lo )
inline

split: split a into high and low parts for two_prod

◆ tracked_two_diff()

template<typename T>
T sw::universal::detail::tracked_two_diff ( T a,
T b,
T & r )
inline

two_diff: compute s + r = a - b exactly

◆ tracked_two_prod()

template<typename T>
T sw::universal::detail::tracked_two_prod ( T a,
T b,
T & r )
inline

two_prod: compute p + r = a * b exactly

◆ tracked_two_sqr()

template<typename T>
T sw::universal::detail::tracked_two_sqr ( T a,
T & r )
inline

two_sqr: compute p + r = a * a exactly (optimized for squaring)

◆ tracked_two_sum()

template<typename T>
T sw::universal::detail::tracked_two_sum ( T a,
T b,
T & r )
inline

two_sum: compute s + r = a + b exactly Returns the floating-point sum s, and stores the exact error in r

◆ two_div_host()

template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void sw::universal::detail::two_div_host ( T a,
T b,
T & q,
T & r )
inline

◆ two_div_rem_host()

template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void sw::universal::detail::two_div_rem_host ( T a,
T b,
T & q,
T & rem )
inline

◆ two_prod_host()

template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void sw::universal::detail::two_prod_host ( T a,
T b,
T & p,
T & r )
inline

◆ two_prod_host< double >()

template<>
void sw::universal::detail::two_prod_host< double > ( double a,
double b,
double & p,
double & r )
inline

◆ two_sum_host()

template<typename T>
UNIVERSAL_ELREAL_EFT_NOINLINE void sw::universal::detail::two_sum_host ( T a,
T b,
T & s,
T & r )
inline

◆ two_sum_host< double >()

template<>
void sw::universal::detail::two_sum_host< double > ( double a,
double b,
double & s,
double & r )
inline

◆ two_sum_roundoff()

template<typename T>
T sw::universal::detail::two_sum_roundoff ( T a,
T b,
T s )
inlinenoexcept

The exact roundoff of a + b, given the rounded sum s (Knuth's TwoSum).

Exact for every finite s, subnormal results included. The volatile temporaries keep an aggressive optimizer from algebraically cancelling the expression, which would defeat the whole point.

◆ ubox_style()

const char * sw::universal::detail::ubox_style ( )
inline

◆ ubox_text()

template<typename I>
std::string sw::universal::detail::ubox_text ( const I & x,
int precision )

◆ ulp_spacing()

template<typename T>
T sw::universal::detail::ulp_spacing ( T x)
inline

Get the ULP (Unit in Last Place) of a floating-point value ULP is the spacing between adjacent floating-point values at this magnitude.

This lives in detail because the library already has a sw::universal::ulp, in native/ieee754_numeric.hpp. Two overloads of the same name in the same namespace, neither more specialised than the other, made every unqualified ulp() call ambiguous as soon as both headers were visible – which any number system header brings about – and that took error() down with it (#1545).

◆ write_step_strip()

void sw::universal::detail::write_step_strip ( std::ostream & o,
const ubox_trace & t,
std::size_t i )
inline

◆ write_trace()

void sw::universal::detail::write_trace ( std::ostream & o,
const ubox_trace & t )
inline

◆ write_width_chart()

void sw::universal::detail::write_width_chart ( std::ostream & o,
const ubox_trace & t )
inline

◆ zbcl_round_to_int()

template<typename FpType>
integer< 256, std::uint32_t > sw::universal::detail::zbcl_round_to_int ( const ZBCL< FpType > & q,
std::size_t depth )
inline

Variable Documentation

◆ decimal_reach

std::int64_t sw::universal::detail::decimal_reach = 7200000000LL
constexpr

◆ default_depth_e

std::size_t sw::universal::detail::default_depth_e = 32
inlineconstexpr

◆ default_depth_euler_gamma

std::size_t sw::universal::detail::default_depth_euler_gamma = 16
inlineconstexpr

◆ default_depth_ln10

std::size_t sw::universal::detail::default_depth_ln10 = 16
inlineconstexpr

◆ default_depth_ln2

std::size_t sw::universal::detail::default_depth_ln2 = 16
inlineconstexpr

◆ default_depth_log2_10

std::size_t sw::universal::detail::default_depth_log2_10 = 16
inlineconstexpr

◆ default_depth_phi

std::size_t sw::universal::detail::default_depth_phi = 16
inlineconstexpr

◆ default_depth_pi

std::size_t sw::universal::detail::default_depth_pi = 16
inlineconstexpr

◆ default_depth_sqrt2

std::size_t sw::universal::detail::default_depth_sqrt2 = 16
inlineconstexpr

◆ default_depth_sqrt3

std::size_t sw::universal::detail::default_depth_sqrt3 = 16
inlineconstexpr

◆ default_depth_sqrt5

std::size_t sw::universal::detail::default_depth_sqrt5 = 16
inlineconstexpr

◆ eft_has_fma_v

template<typename T>
bool sw::universal::detail::eft_has_fma_v = fma_detect::callable<T>
inlineconstexpr

◆ full_scale

std::int64_t sw::universal::detail::full_scale = 1000000000000000000LL
constexpr

◆ has_fma_probe

template<typename T>
std::false_type sw::universal::detail::has_fma_probe(...) ( ...)

◆ has_limits_v

template<typename T>
bool sw::universal::detail::has_limits_v = has_limits<T>()
constexpr

◆ intermediate_fraction_bits

unsigned sw::universal::detail::intermediate_fraction_bits
inlineconstexpr
Initial value:
=
52u

◆ kConstantMemoMaxDepth

std::size_t sw::universal::detail::kConstantMemoMaxDepth = 256
inlineconstexpr

◆ kExpReductionLimit

double sw::universal::detail::kExpReductionLimit = 4611686018427387904.0
inlineconstexpr

◆ kSeriesGuard

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

◆ log10_2_hi

std::int64_t sw::universal::detail::log10_2_hi = 301029995LL
constexpr

◆ log10_2_lo

std::int64_t sw::universal::detail::log10_2_lo = 663981195LL
constexpr

◆ split_scale

std::int64_t sw::universal::detail::split_scale = 1000000000LL
constexpr

◆ ubox_palette_size

int sw::universal::detail::ubox_palette_size = 6
constexpr