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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::detail

Enumerations

enum class  sw::universal::detail::fixpnt_integral { sw::universal::detail::trunc , sw::universal::detail::round , sw::universal::detail::floor , sw::universal::detail::ceil }

Functions

template<fixpnt_integral mode, unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
fixpnt< nbits, rbits, arithmetic, bt > sw::universal::detail::to_integral (const fixpnt< nbits, rbits, arithmetic, bt > &x)
template<unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
fixpnt< nbits, rbits, arithmetic, bt > sw::universal::trunc (fixpnt< nbits, rbits, arithmetic, bt > x)
template<unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
fixpnt< nbits, rbits, arithmetic, bt > sw::universal::round (fixpnt< nbits, rbits, arithmetic, bt > x)
template<unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
fixpnt< nbits, rbits, arithmetic, bt > sw::universal::floor (fixpnt< nbits, rbits, arithmetic, bt > x)
template<unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
fixpnt< nbits, rbits, arithmetic, bt > sw::universal::ceil (fixpnt< nbits, rbits, arithmetic, bt > x)