gem5 v25.0.0.1
Loading...
Searching...
No Matches
scfx_ieee.hh File Reference
#include "../../utils/endian.hh"
#include "sc_fxdefs.hh"

Go to the source code of this file.

Classes

union  sc_dt::ieee_double
class  sc_dt::scfx_ieee_double
union  sc_dt::ieee_float
class  sc_dt::scfx_ieee_float

Namespaces

namespace  sc_dt

Macros

#define SCFX_MASK_(Size)
#define MSB_STATEMENT(x, n)
#define LSB_STATEMENT(x, n)

Functions

double sc_dt::scfx_pow2 (int exp)
double sc_dt::uint64_to_double (uint64 a)

Variables

const unsigned int sc_dt::SCFX_IEEE_DOUBLE_BIAS = 1023U
const int sc_dt::SCFX_IEEE_DOUBLE_E_MAX = 1023
const int sc_dt::SCFX_IEEE_DOUBLE_E_MIN = -1022
const unsigned int sc_dt::SCFX_IEEE_DOUBLE_M_SIZE = 52
const unsigned int sc_dt::SCFX_IEEE_DOUBLE_M0_SIZE = 20
const unsigned int sc_dt::SCFX_IEEE_DOUBLE_M1_SIZE = 32
const unsigned int sc_dt::SCFX_IEEE_DOUBLE_E_SIZE = 11
const unsigned int sc_dt::SCFX_IEEE_FLOAT_BIAS = 127U
const int sc_dt::SCFX_IEEE_FLOAT_E_MAX = 127
const int sc_dt::SCFX_IEEE_FLOAT_E_MIN = -126
const unsigned int sc_dt::SCFX_IEEE_FLOAT_M_SIZE = 23
const unsigned int sc_dt::SCFX_IEEE_FLOAT_E_SIZE = 8

Macro Definition Documentation

◆ LSB_STATEMENT

#define LSB_STATEMENT ( x,
n )
Value:
if ( x << n ) { x <<= n; i -= n; }

Definition at line 321 of file scfx_ieee.hh.

Referenced by sc_dt::scfx_ieee_double::lsb(), and sc_dt::scfx_find_lsb().

◆ MSB_STATEMENT

#define MSB_STATEMENT ( x,
n )
Value:
if ( x >> n ) { x >>= n; i += n; }

Definition at line 291 of file scfx_ieee.hh.

Referenced by sc_dt::scfx_ieee_double::msb(), and sc_dt::scfx_find_msb().

◆ SCFX_MASK_


Generated on Sat Oct 18 2025 08:06:47 for gem5 by doxygen 1.14.0