Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
manipulators_core.hpp File Reference
#include <cstdint>
#include <cmath>
#include <type_traits>
#include <universal/utility/bit_cast.hpp>
#include <universal/utility/find_msb.hpp>
#include <universal/native/ieee754_parameter.hpp>
#include <universal/native/nonconst_bitcast.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::internal

Functions

template<typename Uint, typename Real>
BIT_CAST_CONSTEXPR int sw::universal::internal::_extractExponent (Real v) noexcept
template<typename Uint, typename Real>
Uint sw::universal::internal::_extractFraction (Real v) noexcept
template<typename Uint, typename Real>
Uint sw::universal::internal::_extractSignificand (Real v) noexcept
template<typename Real, typename = typename ::std::enable_if< ::std::is_floating_point<Real>::value, Real >::type>
constexpr bool sw::universal::sign (Real v) noexcept
template<typename Real, typename = typename ::std::enable_if<::std::is_floating_point<Real>::value, Real>::type>
BIT_CAST_CONSTEXPR int sw::universal::scale (Real v) noexcept
template<typename Real, typename = typename ::std::enable_if<::std::is_floating_point<Real>::value, Real>::type>
BIT_CAST_CONSTEXPR int sw::universal::exponent (Real v) noexcept
template<typename Real, typename = typename ::std::enable_if< ::std::is_floating_point<Real>::value, Real>::type>
unsigned long long sw::universal::fractionBits (Real v) noexcept
template<typename Real, typename = typename ::std::enable_if< ::std::is_floating_point<Real>::value, Real>::type>
Real sw::universal::fraction (Real v) noexcept
template<typename Real, typename = typename ::std::enable_if<::std::is_floating_point<Real>::value, Real>::type>
Real sw::universal::significand (Real v) noexcept
template<typename Real, typename = typename ::std::enable_if< ::std::is_floating_point<Real>::value, Real>::type>
std::uint64_t sw::universal::significandBits (Real v) noexcept