struct UnpackedPosit

Declaration

template <class PT>
struct UnpackedPosit { /* full declaration omitted */ };

Description

Unpacked representaiton of the Posit with (sign,regime,exponent,fraction)

Declared at: include/backends/unpacked.hpp:27

Templates

PT
is the posit trait

Member Variables

public posit::NumberType type
public bool negativeSign
type of posit special number
public typename PT::POSIT_STYPE regime
public typename PT::POSIT_UTYPE exp
decoded regime value
public typename PT::POSIT_UTYPE fraction
decoded exponent value (positive)

Method Overview

  • public constexpr UnpackedPosit<PT>(posit::NumberType t)
  • public constexpr UnpackedPosit<PT>(posit::NumberType t, bool anegativeSign)
  • public constexpr UnpackedPosit<PT>(bool n, typename PT::POSIT_STYPE r, typename PT::POSIT_UTYPE e, typename PT::POSIT_UTYPE f)

Methods

constexpr UnpackedPosit<PT>(posit::NumberType t)

Declared at: include/backends/unpacked.hpp:29

Parameters

posit::NumberType t

constexpr UnpackedPosit<PT>(posit::NumberType t,
                            bool anegativeSign)

Declared at: include/backends/unpacked.hpp:30

Parameters

posit::NumberType t
bool anegativeSign

constexpr UnpackedPosit<PT>(
    bool n,
    typename PT::POSIT_STYPE r,
    typename PT::POSIT_UTYPE e,
    typename PT::POSIT_UTYPE f)

Declared at: include/backends/unpacked.hpp:31

Parameters

bool n
typename PT::POSIT_STYPE r
typename PT::POSIT_UTYPE e
typename PT::POSIT_UTYPE f