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 <algorithm>
#include <bit>
#include <cstddef>
#include <cstdint>
#include <type_traits>
#include <vector>
#include <universal/number/efloat/math/exponent.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::efloat_detail
 decimal formatting (binary -> decimal string at arbitrary precision)

Functions

template<unsigned nlimbs>
constexpr void sw::universal::efloat_detail::load_shifted (limb_kernels::limb_t *r, std::size_t n, const efloat< nlimbs > &x, int64_t shift)
template<std::size_t M, unsigned nlimbs>
constexpr void sw::universal::efloat_detail::sqrt_short (efloat< nlimbs > &result, const efloat< nlimbs > &a, unsigned plimbs)
template<unsigned nlimbs>
constexpr bool sw::universal::efloat_detail::sqrt_is_short (const efloat< nlimbs > &a, unsigned plimbs)
template<unsigned nlimbs>
constexpr void sw::universal::efloat_detail::sqrt_limbs (efloat< nlimbs > &result, const efloat< nlimbs > &a, unsigned precision)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::sqrt_to (const efloat< nlimbs > &a, unsigned bits)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::sqrt (const efloat< nlimbs > &a)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::cbrt_exact (const efloat< nlimbs > &m, unsigned precision)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::cbrt_to (const efloat< nlimbs > &a, unsigned bits)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::cbrt (const efloat< nlimbs > &a)