Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
numeric_limits.hpp File Reference

Classes

struct  sw::universal::sorn_limits::lattice< start, stop, steps, lin >
class  std::numeric_limits< sw::universal::sorn< _start, _stop, _steps, _lin, _halfopen, _neg, _inf, _zero > >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::sorn_limits
namespace  std
 STL namespace.

Functions

constexpr float sw::universal::sorn_limits::pow2 (int e)
constexpr int sw::universal::sorn_limits::floor_log2 (float v)
constexpr int sw::universal::sorn_limits::ceil_log2 (float v)
constexpr int sw::universal::sorn_limits::floor_log10 (double v)
constexpr int sw::universal::sorn_limits::ceil_log10 (double v)

Variables

constexpr float sw::universal::sorn_limits::kInf = std::numeric_limits<float>::infinity()