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

Classes

struct  sw::universal::posit_limbs::Fields

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::posit_limbs

Typedefs

using sw::universal::posit_limbs::limb_t

Functions

constexpr std::size_t sw::universal::posit_limbs::limbs (unsigned bits) noexcept
constexpr bool sw::universal::posit_limbs::test (const limb_t *w, unsigned i) noexcept
constexpr void sw::universal::posit_limbs::set (limb_t *w, unsigned i) noexcept
constexpr void sw::universal::posit_limbs::clear (limb_t *w, unsigned i) noexcept
template<unsigned nbits, typename bt, BinaryNumberType NumberType>
constexpr void sw::universal::posit_limbs::gather (const blockbinary< nbits, bt, NumberType > &bits, limb_t *w) noexcept
template<unsigned nbits, unsigned es, typename bt>
void sw::universal::posit_limbs::gather (const posit< nbits, es, bt > &a, limb_t *w) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr posit< nbits, es, bt > & sw::universal::posit_limbs::scatter (posit< nbits, es, bt > &p, const limb_t *w) noexcept
template<unsigned nbits>
constexpr void sw::universal::posit_limbs::negate (limb_t *w) noexcept
template<unsigned nbits, unsigned es>
constexpr Fields sw::universal::posit_limbs::decode (limb_t *w) noexcept
template<unsigned nbits, unsigned es>
constexpr Fields sw::universal::posit_limbs::fields (const limb_t *w) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr posit< nbits, es, bt > & sw::universal::posit_limbs::encode (posit< nbits, es, bt > &p, int scale, const limb_t *sig, std::size_t n, bool sticky, bool negative=false) noexcept