gem5  v22.1.0.0
Namespaces | Macros | Functions
scfx_utils.hh File Reference
#include "sc_fxdefs.hh"
#include "scfx_params.hh"
#include "scfx_string.hh"

Go to the source code of this file.

Namespaces

 sc_dt
 

Macros

#define MSB_STATEMENT(n)   if (x >> n) { x >>= n; i += n; }
 
#define LSB_STATEMENT(n)   if (x << n) { x <<= n; i -= n; }
 

Functions

int sc_dt::scfx_find_msb (unsigned long x)
 
int sc_dt::scfx_find_lsb (unsigned long x)
 
int sc_dt::scfx_parse_sign (const char *&s, bool &sign_char)
 
sc_numrep sc_dt::scfx_parse_prefix (const char *&s)
 
int sc_dt::scfx_parse_base (const char *&s)
 
bool sc_dt::scfx_is_equal (const char *a, const char *b)
 
bool sc_dt::scfx_is_nan (const char *s)
 
bool sc_dt::scfx_is_inf (const char *s)
 
bool sc_dt::scfx_exp_start (const char *s)
 
bool sc_dt::scfx_is_digit (char c, sc_numrep numrep)
 
int sc_dt::scfx_to_digit (char c, sc_numrep numrep)
 
void sc_dt::scfx_print_nan (scfx_string &s)
 
void sc_dt::scfx_print_inf (scfx_string &s, bool negative)
 
void sc_dt::scfx_print_prefix (scfx_string &s, sc_numrep numrep)
 
void sc_dt::scfx_print_exp (scfx_string &s, int exp)
 
void sc_dt::scfx_tc2csd (scfx_string &s, int w_prefix)
 
void sc_dt::scfx_csd2tc (scfx_string &csd)
 

Macro Definition Documentation

◆ LSB_STATEMENT

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

Definition at line 83 of file scfx_utils.hh.

◆ MSB_STATEMENT

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

Definition at line 64 of file scfx_utils.hh.


Generated on Wed Dec 21 2022 10:23:00 for gem5 by doxygen 1.9.1