Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
efloat_constants.hpp File Reference
#include <string>
#include <string_view>
#include <algorithm>
#include <type_traits>

Classes

struct  sw::universal::efloat_detail::pi_literal
struct  sw::universal::efloat_detail::e_literal
struct  sw::universal::efloat_detail::phi_literal

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 efloat< nlimbs > sw::universal::efloat_detail::make_constant (std::string_view decimal)
template<unsigned nlimbs, typename Literal>
efloat< nlimbs > sw::universal::efloat_detail::cached_literal ()
template<unsigned nlimbs, typename Literal>
constexpr efloat< nlimbs > sw::universal::efloat_detail::literal_constant ()
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_pi ()
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_e ()
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_phi ()

Variables

constexpr const char * sw::universal::EFLOAT_PI_DIGITS
constexpr const char * sw::universal::EFLOAT_E_DIGITS
constexpr const char * sw::universal::EFLOAT_PHI_DIGITS
constexpr unsigned sw::universal::efloat_detail::constant_literal_bits = 3300u
constexpr unsigned sw::universal::efloat_detail::constant_big_bits = 16384u