gem5
v20.1.0.0
|
#include <stdint.h>
#include <climits>
Go to the source code of this file.
Namespaces | |
sc_dt | |
Typedefs | |
typedef unsigned char | sc_dt::uchar |
typedef int | sc_dt::small_type |
typedef unsigned int | sc_dt::sc_digit |
typedef int64_t | sc_dt::int64 |
typedef uint64_t | sc_dt::uint64 |
typedef int64 | sc_dt::int_type |
typedef uint64 | sc_dt::uint_type |
Enumerations | |
enum | sc_dt::sc_numrep { sc_dt::SC_NOBASE = 0, sc_dt::SC_BIN = 2, sc_dt::SC_OCT = 8, sc_dt::SC_DEC = 10, sc_dt::SC_HEX = 16, sc_dt::SC_BIN_US, sc_dt::SC_BIN_SM, sc_dt::SC_OCT_US, sc_dt::SC_OCT_SM, sc_dt::SC_HEX_US, sc_dt::SC_HEX_SM, sc_dt::SC_CSD } |
Variables | |
static const uint64 | sc_dt::UINT64_ZERO = 0ULL |
static const uint64 | sc_dt::UINT64_ONE = 1ULL |
static const uint64 | sc_dt::UINT64_32ONES = 0x00000000ffffffffULL |
static const small_type | sc_dt::NB_DEFAULT_BASE = SC_DEC |
static const uint64 | sc_dt::UINT_ZERO = UINT64_ZERO |
static const uint64 | sc_dt::UINT_ONE = UINT64_ONE |
#define BITS_PER_BYTE 8 |
Definition at line 145 of file sc_nbdefs.hh.
#define BITS_PER_CHAR 8 |
Definition at line 216 of file sc_nbdefs.hh.
#define BITS_PER_DIGIT 30 |
Definition at line 161 of file sc_nbdefs.hh.
#define BITS_PER_DIGIT_TYPE 32 |
Definition at line 157 of file sc_nbdefs.hh.
#define BITS_PER_HALF_DIGIT (BITS_PER_DIGIT / 2) |
Definition at line 169 of file sc_nbdefs.hh.
#define BITS_PER_INT (sizeof(int) * BITS_PER_CHAR) |
Definition at line 217 of file sc_nbdefs.hh.
#define BITS_PER_INT64 (sizeof(::sc_dt::int64) * BITS_PER_CHAR) |
Definition at line 219 of file sc_nbdefs.hh.
#define BITS_PER_LONG (sizeof(long) * BITS_PER_CHAR) |
Definition at line 218 of file sc_nbdefs.hh.
#define BITS_PER_UINT (sizeof(unsigned int) * BITS_PER_CHAR) |
Definition at line 220 of file sc_nbdefs.hh.
#define BITS_PER_UINT64 (sizeof(::sc_dt::uint64) * BITS_PER_CHAR) |
Definition at line 222 of file sc_nbdefs.hh.
#define BITS_PER_ULONG (sizeof(unsigned long) * BITS_PER_CHAR) |
Definition at line 221 of file sc_nbdefs.hh.
#define BYTE_MASK 255 |
Definition at line 147 of file sc_nbdefs.hh.
#define BYTE_RADIX 256 |
Definition at line 146 of file sc_nbdefs.hh.
#define BYTES_PER_DIGIT 4 |
Definition at line 160 of file sc_nbdefs.hh.
#define BYTES_PER_DIGIT_TYPE 4 |
Definition at line 156 of file sc_nbdefs.hh.
#define DIGIT_MASK (DIGIT_RADIX - 1) |
Definition at line 163 of file sc_nbdefs.hh.
#define DIGIT_RADIX (1ul << BITS_PER_DIGIT) |
Definition at line 162 of file sc_nbdefs.hh.
#define DIGITS_PER_CHAR 1 |
Definition at line 225 of file sc_nbdefs.hh.
#define DIGITS_PER_INT ((BITS_PER_INT + 29) / 30) |
Definition at line 226 of file sc_nbdefs.hh.
#define DIGITS_PER_INT64 ((BITS_PER_INT64 + 29) / 30) |
Definition at line 228 of file sc_nbdefs.hh.
#define DIGITS_PER_LONG ((BITS_PER_LONG + 29) / 30) |
Definition at line 227 of file sc_nbdefs.hh.
#define DIGITS_PER_UINT ((BITS_PER_UINT + 29) / 30) |
Definition at line 229 of file sc_nbdefs.hh.
#define DIGITS_PER_UINT64 ((BITS_PER_UINT64 + 29) / 30) |
Definition at line 231 of file sc_nbdefs.hh.
#define DIGITS_PER_ULONG ((BITS_PER_ULONG + 29) / 30) |
Definition at line 230 of file sc_nbdefs.hh.
#define DIV_CEIL | ( | x | ) | DIV_CEIL2(x, BITS_PER_DIGIT) |
Definition at line 178 of file sc_nbdefs.hh.
#define DIV_CEIL2 | ( | x, | |
y | |||
) | (((x) - 1) / (y) + 1) |
Definition at line 174 of file sc_nbdefs.hh.
#define HALF_DIGIT_MASK (HALF_DIGIT_RADIX - 1) |
Definition at line 171 of file sc_nbdefs.hh.
#define HALF_DIGIT_RADIX (1ul << BITS_PER_HALF_DIGIT) |
Definition at line 170 of file sc_nbdefs.hh.
#define LOG2_BITS_PER_BYTE 3 |
Definition at line 151 of file sc_nbdefs.hh.
#define SC_INTWIDTH 64 |
Definition at line 242 of file sc_nbdefs.hh.
#define SC_NEG -1 |
Definition at line 133 of file sc_nbdefs.hh.
#define SC_NOSIGN 2 |
Definition at line 136 of file sc_nbdefs.hh.
#define SC_POS 1 |
Definition at line 135 of file sc_nbdefs.hh.
#define SC_ZERO 0 |
Definition at line 134 of file sc_nbdefs.hh.