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.hpp File Reference
#include <cstddef>
#include <iomanip>
#include <sstream>
#include <string>
#include <type_traits>
#include <universal/number/ereal/core.hpp>
#include <universal/number/ereal/iostream.hpp>
#include <universal/native/ieee754.hpp>
#include <universal/utility/color_print.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nlimbs, typename FpType>
std::string sw::universal::type_tag (const ereal< nlimbs, FpType > &={})
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::to_components (const ErealType &v)
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::to_triple (const ErealType &v)
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::to_binary (const ErealType &v, bool nibbleMarker=false)
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::to_hex (const ErealType &v, bool nibbleMarker=false, bool hexPrefix=true)
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::hex_print (const ErealType &c)
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::pretty_print (const ErealType &r)
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::info_print (const ErealType &p, int printPrecision=17)
template<typename ErealType, std::enable_if_t< is_ereal< ErealType >, bool > = true>
std::string sw::universal::color_print (const ErealType &r, bool nibbleMarker=false)