Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
nonconstexpr754.hpp File Reference
#include <sstream>
#include <iomanip>
#include <cmath>
#include <limits>
#include <tuple>
#include <string>
#include <universal/utility/color_print.hpp>
#include <universal/native/nonconstexpr/extract_fp_components.hpp>
#include <universal/native/nonconstexpr/msvc_long_double.hpp>
#include <universal/native/nonconstexpr/clang_long_double.hpp>
#include <universal/native/nonconstexpr/gcc_long_double.hpp>

Classes

union  sw::universal::float_decoder
union  sw::universal::double_decoder

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

void sw::universal::extractFields (float value, bool &s, uint64_t &rawExponentBits, uint64_t &rawFractionBits) noexcept
void sw::universal::extractFields (double value, bool &s, uint64_t &rawExponentBits, uint64_t &rawFractionBits) noexcept
std::string sw::universal::to_hex (float number)
std::string sw::universal::to_binary (float number, bool bNibbleMarker=false)
std::string sw::universal::to_triple (float number, bool nibbleMarker=false)
std::string sw::universal::to_base2_scientific (float number)
std::tuple< bool, int, std::uint32_t > sw::universal::ieee_components (float fp)
std::string sw::universal::color_print (float number)
std::string sw::universal::to_hex (double number)
std::string sw::universal::to_binary (double number, bool bNibbleMarker=false)
std::string sw::universal::to_triple (double number)
std::string sw::universal::to_base2_scientific (double number)
std::tuple< bool, int, std::uint64_t > sw::universal::ieee_components (double fp)
std::string sw::universal::color_print (double number)