Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sqrt.hpp File Reference
#include <cerrno>
#include <cmath>
#include <universal/native/ieee754.hpp>
#include <universal/numerics/error_free_ops.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

int sw::universal::sqrt_compare_square (double m, double A)
template<typename Cfloat>
Cfloat sw::universal::sqrt_correctly_rounded_in_double (const Cfloat &a, Cfloat x)
template<typename Cfloat>
Cfloat sw::universal::sqrt_correctly_rounded (const Cfloat &a, Cfloat x)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > sw::universal::sqrt (const cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > &)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > sw::universal::rsqrt (const cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > &a)