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

Classes

struct  sw::universal::singleDivState< FpType >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Enumerations

enum class  sw::universal::DenseDivision { sw::universal::NewtonReciprocal , sw::universal::FaithfulLongDivision }

Functions

template<typename FpType>
ZBCL< FpType > sw::universal::singleDiv (ZBCL< FpType > fs, block< FpType > g)
template<typename FpType>
ZBCL< FpType > sw::universal::zbcl_shift (ZBCL< FpType > z, typename block< FpType >::exp_t n)
template<typename FpType>
ZBCL< FpType > sw::universal::twoDivZBCL (block< FpType > x, block< FpType > y)
template<typename FpType>
ZBCL< FpType > sw::universal::singleDiv_whole (ZBCL< FpType > z)
template<typename FpType>
std::optional< block< FpType > > sw::universal::singleDiv_step (singleDivState< FpType > &st)
template<typename FpType>
ZBCL< FpType > sw::universal::singleDiv_stream (std::shared_ptr< singleDivState< FpType > > st)
template<typename FpType>
series< FpType > sw::universal::divideHelper (ZBCL< FpType > fs, ZBCL< FpType > divisor)
template<typename FpType>
ZBCL< FpType > sw::universal::div_raw (ZBCL< FpType > fs, ZBCL< FpType > gs)
template<typename FpType>
series< FpType > sw::universal::divideHelper_bounded (ZBCL< FpType > fs, ZBCL< FpType > divisor, std::size_t budget)
template<typename FpType>
ZBCL< FpType > sw::universal::div_long_division (ZBCL< FpType > fs, ZBCL< FpType > gs, std::size_t depth)
template<typename FpType>
ZBCL< FpType > sw::universal::zbcl_truncate (const ZBCL< FpType > &z, std::size_t m)
template<typename FpType>
ZBCL< FpType > sw::universal::recip_newton (const ZBCL< FpType > &b, std::size_t depth)
template<typename FpType>
bool sw::universal::is_dense_divisor (const ZBCL< FpType > &gs)
template<typename FpType>
ZBCL< FpType > sw::universal::div_online (ZBCL< FpType > fs, ZBCL< FpType > gs, std::size_t depth=kDenseQuotientDepth, DenseDivision policy=DenseDivision::NewtonReciprocal)

Variables

constexpr std::size_t sw::universal::kSingleDivLookahead = 3
constexpr std::size_t sw::universal::kSingleDivZeroRun = 4
constexpr std::size_t sw::universal::kLongDivisionGuard = 2
constexpr std::size_t sw::universal::kDenseQuotientDepth = 64