Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
set_fields.hpp File Reference
#include <cstdint>
#include <cfloat>
#include <universal/number/shared/nan_encoding.hpp>
#include <universal/number/shared/infinite_encoding.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

void sw::universal::setbit (float &v, unsigned index, bool b=true)
void sw::universal::setbit (double &v, unsigned index, bool b=true)
void sw::universal::setFields (float &value, bool s, uint32_t rawExponentBits, uint32_t rawFractionBits) noexcept
void sw::universal::setFields (double &value, bool s, uint64_t rawExponentBits, uint64_t rawFractionBits) noexcept