gem5 v24.0.0.0
Loading...
Searching...
No Matches
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 75 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 157 of file scfx_mant.hh.

References alloc(), and m_array.

◆ scfx_mant() [2/2]

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

Definition at line 162 of file scfx_mant.hh.

References alloc(), m_array, and m_size.

◆ ~scfx_mant()

sc_dt::scfx_mant::~scfx_mant ( )
inline

Definition at line 187 of file scfx_mant.hh.

References free(), m_array, and m_size.

Member Function Documentation

◆ alloc()

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

Definition at line 116 of file scfx_mant.hh.

References alloc_word(), and size().

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

◆ alloc_word()

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

◆ clear()

◆ free()

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

Definition at line 126 of file scfx_mant.hh.

References free_word(), and size().

Referenced by operator=(), resize_to(), and ~scfx_mant().

◆ free_word()

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

Definition at line 106 of file scfx_mant.cc.

References sc_dt::free_words, sc_dt::word_list::m_next_p, sc_dt::next_pow2_index(), and size().

Referenced by free().

◆ half_addr()

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

Definition at line 282 of file scfx_mant.hh.

References m_array, m_size, and SC_ASSERT_.

◆ half_at() [1/2]

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

Definition at line 270 of file scfx_mant.hh.

References m_array, m_size, and SC_ASSERT_.

◆ half_at() [2/2]

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

Definition at line 258 of file scfx_mant.hh.

References m_array, m_size, and SC_ASSERT_.

◆ operator=()

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

Definition at line 172 of file scfx_mant.hh.

References alloc(), free(), m_array, and m_size.

◆ operator[]() [1/2]

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

Definition at line 147 of file scfx_mant.hh.

References m_array, m_size, and SC_ASSERT_.

◆ operator[]() [2/2]

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

Definition at line 136 of file scfx_mant.hh.

References m_array, m_size, and SC_ASSERT_.

◆ resize_to()

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

◆ size()

Member Data Documentation

◆ m_array

word* sc_dt::scfx_mant::m_array
private

◆ m_size

int sc_dt::scfx_mant::m_size
private

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

Generated on Tue Jun 18 2024 16:24:55 for gem5 by doxygen 1.11.0