Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
universal_convert.hpp File Reference
#include <type_traits>
#include <concepts>
#include <limits>
#include <universal/utility/directives.hpp>
#include <universal/traits/cross_type_traits.hpp>

Classes

struct  sw::universal::detail::is_binary_expansion_type< T >
struct  sw::universal::detail::is_binary_expansion_type< dd >
struct  sw::universal::detail::is_binary_expansion_type< qd >
struct  sw::universal::detail::is_binary_expansion_type< cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::detail

Concepts

concept  sw::universal::detail::double_expansion_castable

Functions

template<typename Float, typename Target, typename Source>
constexpr Target sw::universal::detail::cast_via (const Source &src) noexcept
template<typename Target, typename Source>
constexpr bool sw::universal::detail::cast_via_double_expansion (const Source &src, Target &out) noexcept
template<typename Target, typename Source>
requires UniversalNumber<Source> && UniversalNumber<Target>
constexpr Target sw::universal::universal_cast (const Source &src) noexcept
template<typename Target, typename Source>
requires UniversalNumber<Source> && UniversalNumber<Target>
constexpr Target & sw::universal::universal_assign (Target &tgt, const Source &src) noexcept
template<typename Target, typename Source>
constexpr Target sw::universal::convert_through_double (const Source &src) noexcept

Variables

constexpr unsigned sw::universal::detail::intermediate_fraction_bits