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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<typename Takum>
Takum sw::universal::saturate_from_double (double r, bool nonzero)