gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
sc_dt::scfx_ieee_float Class Reference

#include <scfx_ieee.hh>

Public Member Functions

 scfx_ieee_float ()
 
 scfx_ieee_float (float)
 
 scfx_ieee_float (const scfx_ieee_float &)
 
scfx_ieee_floatoperator= (float)
 
scfx_ieee_floatoperator= (const scfx_ieee_float &)
 
 operator float () const
 
unsigned int negative () const
 
void negative (unsigned int)
 
int exponent () const
 
void exponent (int)
 
unsigned int mantissa () const
 
void mantissa (unsigned int)
 
bool is_zero () const
 
bool is_subnormal () const
 
bool is_normal () const
 
bool is_inf () const
 
bool is_nan () const
 
void set_inf ()
 
void set_nan ()
 

Private Attributes

ieee_float m_if
 

Detailed Description

Definition at line 438 of file scfx_ieee.hh.

Constructor & Destructor Documentation

◆ scfx_ieee_float() [1/3]

sc_dt::scfx_ieee_float::scfx_ieee_float ( )
inline

Definition at line 472 of file scfx_ieee.hh.

◆ scfx_ieee_float() [2/3]

sc_dt::scfx_ieee_float::scfx_ieee_float ( float  f)
inline

Definition at line 477 of file scfx_ieee.hh.

References m_if, and sc_dt::ieee_float::s.

◆ scfx_ieee_float() [3/3]

sc_dt::scfx_ieee_float::scfx_ieee_float ( const scfx_ieee_float a)
inline

Definition at line 482 of file scfx_ieee.hh.

References ArmISA::a, m_if, sc_dt::ieee_float::s, and SCFX_MASK_.

Member Function Documentation

◆ exponent() [1/2]

int sc_dt::scfx_ieee_float::exponent ( ) const
inline

Definition at line 521 of file scfx_ieee.hh.

References mantissa(), and sc_dt::SCFX_IEEE_FLOAT_E_MIN.

Referenced by exponent(), is_subnormal(), is_zero(), mantissa(), and negative().

◆ exponent() [2/2]

void sc_dt::scfx_ieee_float::exponent ( int  a)
inline

◆ is_inf()

bool sc_dt::scfx_ieee_float::is_inf ( ) const
inline

Definition at line 566 of file scfx_ieee.hh.

References MipsISA::r, and sc_dt::SCFX_IEEE_DOUBLE_E_MIN.

◆ is_nan()

bool sc_dt::scfx_ieee_float::is_nan ( ) const
inline

Definition at line 572 of file scfx_ieee.hh.

References MipsISA::r.

◆ is_normal()

bool sc_dt::scfx_ieee_float::is_normal ( ) const
inline

Definition at line 559 of file scfx_ieee.hh.

◆ is_subnormal()

bool sc_dt::scfx_ieee_float::is_subnormal ( ) const
inline

Definition at line 553 of file scfx_ieee.hh.

References exponent(), mantissa(), and sc_dt::SCFX_IEEE_FLOAT_E_MAX.

◆ is_zero()

bool sc_dt::scfx_ieee_float::is_zero ( ) const
inline

Definition at line 547 of file scfx_ieee.hh.

References exponent(), mantissa(), and sc_dt::SCFX_IEEE_FLOAT_E_MAX.

◆ mantissa() [1/2]

unsigned int sc_dt::scfx_ieee_float::mantissa ( ) const
inline

Definition at line 534 of file scfx_ieee.hh.

References exponent(), and sc_dt::SCFX_IEEE_FLOAT_E_MAX.

Referenced by exponent(), is_subnormal(), is_zero(), mantissa(), and negative().

◆ mantissa() [2/2]

void sc_dt::scfx_ieee_float::mantissa ( unsigned int  a)
inline

Definition at line 540 of file scfx_ieee.hh.

References exponent(), mantissa(), and sc_dt::SCFX_IEEE_FLOAT_E_MAX.

◆ negative() [1/2]

unsigned int sc_dt::scfx_ieee_float::negative ( ) const
inline

◆ negative() [2/2]

void sc_dt::scfx_ieee_float::negative ( unsigned int  a)
inline

Definition at line 515 of file scfx_ieee.hh.

References exponent(), mantissa(), and sc_dt::SCFX_IEEE_FLOAT_E_MIN.

◆ operator float()

sc_dt::scfx_ieee_float::operator float ( ) const
inline

Definition at line 503 of file scfx_ieee.hh.

References m_if, and sc_dt::ieee_float::s.

◆ operator=() [1/2]

scfx_ieee_float & sc_dt::scfx_ieee_float::operator= ( const scfx_ieee_float a)
inline

◆ operator=() [2/2]

scfx_ieee_float & sc_dt::scfx_ieee_float::operator= ( float  f)
inline

Definition at line 490 of file scfx_ieee.hh.

References m_if, sc_dt::ieee_float::s, and sc_dt::SCFX_IEEE_FLOAT_BIAS.

◆ set_inf()

void sc_dt::scfx_ieee_float::set_inf ( )
inline

Definition at line 578 of file scfx_ieee.hh.

◆ set_nan()

void sc_dt::scfx_ieee_float::set_nan ( )
inline

Definition at line 585 of file scfx_ieee.hh.

Member Data Documentation

◆ m_if

ieee_float sc_dt::scfx_ieee_float::m_if
private

Definition at line 440 of file scfx_ieee.hh.

Referenced by negative(), operator float(), operator=(), and scfx_ieee_float().


The documentation for this class was generated from the following file:

Generated on Wed Sep 30 2020 14:03:10 for gem5 by doxygen 1.8.17