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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::bposit_math

Enumerations

enum class  sw::universal::bposit_math::integral_rule { sw::universal::bposit_math::floor , sw::universal::bposit_math::ceil , sw::universal::bposit_math::trunc , sw::universal::bposit_math::round }

Functions

template<integral_rule R, typename B>
B sw::universal::bposit_math::integral (const B &x)
template<unsigned nbits, unsigned rs, unsigned es, typename bt>
bposit< nbits, rs, es, bt > sw::universal::floor (const bposit< nbits, rs, es, bt > &x)
template<unsigned nbits, unsigned rs, unsigned es, typename bt>
bposit< nbits, rs, es, bt > sw::universal::ceil (const bposit< nbits, rs, es, bt > &x)
template<unsigned nbits, unsigned rs, unsigned es, typename bt>
bposit< nbits, rs, es, bt > sw::universal::trunc (const bposit< nbits, rs, es, bt > &x)
template<unsigned nbits, unsigned rs, unsigned es, typename bt>
bposit< nbits, rs, es, bt > sw::universal::round (const bposit< nbits, rs, es, bt > &x)