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

#include <scfx_mant.hh>

Public Member Functions

 scfx_mant (std::size_t)
 
 scfx_mant (const scfx_mant &)
 
scfx_mantoperator= (const scfx_mant &)
 
 ~scfx_mant ()
 
void clear ()
 
void resize_to (int, int=0)
 
int size () const
 
word operator[] (int) const
 
wordoperator[] (int)
 
half_word half_at (int) const
 
half_wordhalf_at (int)
 
half_wordhalf_addr (int=0) const
 

Static Private Member Functions

static wordalloc (std::size_t)
 
static void free (word *, std::size_t)
 
static wordalloc_word (std::size_t size)
 
static void free_word (word *array, std::size_t size)
 

Private Attributes

wordm_array
 
int m_size
 

Detailed Description

Definition at line 107 of file scfx_mant.hh.

Constructor & Destructor Documentation

◆ scfx_mant() [1/2]

sc_dt::scfx_mant::scfx_mant ( std::size_t  size_)
inlineexplicit

Definition at line 189 of file scfx_mant.hh.

References free(), m_array, and m_size.

◆ scfx_mant() [2/2]

sc_dt::scfx_mant::scfx_mant ( const scfx_mant rhs)
inline

Definition at line 194 of file scfx_mant.hh.

References ArmISA::i, and m_size.

◆ ~scfx_mant()

sc_dt::scfx_mant::~scfx_mant ( )
inline

Definition at line 219 of file scfx_mant.hh.

Member Function Documentation

◆ alloc()

word * sc_dt::scfx_mant::alloc ( std::size_t  size)
inlinestaticprivate

Definition at line 148 of file scfx_mant.hh.

References ArmISA::i, m_array, m_size, and SC_ASSERT_.

Referenced by operator=().

◆ alloc_word()

word * sc_dt::scfx_mant::alloc_word ( std::size_t  size)
staticprivate

Definition at line 114 of file scfx_mant.cc.

◆ clear()

void sc_dt::scfx_mant::clear ( )
inline

◆ free()

void sc_dt::scfx_mant::free ( word mant,
std::size_t  size 
)
inlinestaticprivate

Definition at line 158 of file scfx_mant.hh.

Referenced by scfx_mant().

◆ free_word()

void sc_dt::scfx_mant::free_word ( word array,
std::size_t  size 
)
staticprivate

Definition at line 138 of file scfx_mant.cc.

◆ half_addr()

half_word * sc_dt::scfx_mant::half_addr ( int  i = 0) const
inline

Definition at line 314 of file scfx_mant.hh.

◆ half_at() [1/2]

half_word & sc_dt::scfx_mant::half_at ( int  i)
inline

Definition at line 302 of file scfx_mant.hh.

◆ half_at() [2/2]

half_word sc_dt::scfx_mant::half_at ( int  i) const
inline

Definition at line 290 of file scfx_mant.hh.

◆ operator=()

scfx_mant & sc_dt::scfx_mant::operator= ( const scfx_mant rhs)
inline

Definition at line 204 of file scfx_mant.hh.

References alloc(), ArmISA::i, m_array, m_size, MipsISA::p, sc_dt::sc_min(), and size().

◆ operator[]() [1/2]

word & sc_dt::scfx_mant::operator[] ( int  i)
inline

Definition at line 179 of file scfx_mant.hh.

References ArmISA::i.

◆ operator[]() [2/2]

word sc_dt::scfx_mant::operator[] ( int  i) const
inline

Definition at line 168 of file scfx_mant.hh.

◆ resize_to()

void sc_dt::scfx_mant::resize_to ( int  size,
int  restore = 0 
)
inline

Definition at line 235 of file scfx_mant.hh.

◆ size()

int sc_dt::scfx_mant::size ( ) const
inline

Definition at line 145 of file scfx_mant.hh.

Referenced by sc_dt::scfx_rep::multiply_by_ten(), and operator=().

Member Data Documentation

◆ m_array

word* sc_dt::scfx_mant::m_array
private

Definition at line 109 of file scfx_mant.hh.

Referenced by alloc(), operator=(), and scfx_mant().

◆ m_size

int sc_dt::scfx_mant::m_size
private

Definition at line 110 of file scfx_mant.hh.

Referenced by alloc(), operator=(), and scfx_mant().


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

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