sc_nbdefs.h File Reference

#include "sysc/kernel/sc_cmnhdr.h"
#include <climits>
#include "sysc/utils/sc_iostream.h"
#include "sysc/kernel/sc_constants.h"
#include "sysc/utils/sc_string.h"

Include dependency graph for sc_nbdefs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sc_dt

Defines

#define SC_DT_MIXED_COMMA_OPERATORS
#define SC_NEG   -1
#define SC_ZERO   0
#define SC_POS   1
#define SC_NOSIGN   2
#define BITS_PER_BYTE   8
#define BYTE_RADIX   256
#define BYTE_MASK   255
#define LOG2_BITS_PER_BYTE   3
#define BYTES_PER_DIGIT_TYPE   4
#define BITS_PER_DIGIT_TYPE   32
#define BYTES_PER_DIGIT   4
#define BITS_PER_DIGIT   30
#define DIGIT_RADIX   (1ul << BITS_PER_DIGIT)
#define DIGIT_MASK   (DIGIT_RADIX - 1)
#define BITS_PER_HALF_DIGIT   (BITS_PER_DIGIT / 2)
#define HALF_DIGIT_RADIX   (1ul << BITS_PER_HALF_DIGIT)
#define HALF_DIGIT_MASK   (HALF_DIGIT_RADIX - 1)
#define DIV_CEIL2(x, y)   (((x) - 1) / (y) + 1)
#define DIV_CEIL(x)   DIV_CEIL2(x, BITS_PER_DIGIT)
#define BITS_PER_CHAR   8
#define BITS_PER_INT   (sizeof(int) * BITS_PER_CHAR)
#define BITS_PER_LONG   (sizeof(long) * BITS_PER_CHAR)
#define BITS_PER_INT64   (sizeof(long long) * BITS_PER_CHAR)
#define BITS_PER_UINT   (sizeof(unsigned int) * BITS_PER_CHAR)
#define BITS_PER_ULONG   (sizeof(unsigned long) * BITS_PER_CHAR)
#define BITS_PER_UINT64   (sizeof(unsigned long long) * BITS_PER_CHAR)
#define DIGITS_PER_CHAR   1
#define DIGITS_PER_INT   ((BITS_PER_INT+29)/30)
#define DIGITS_PER_LONG   ((BITS_PER_LONG+29)/30)
#define DIGITS_PER_INT64   ((BITS_PER_INT64+29)/30)
#define DIGITS_PER_UINT   ((BITS_PER_UINT+29)/30)
#define DIGITS_PER_ULONG   ((BITS_PER_ULONG+29)/30)
#define DIGITS_PER_UINT64   ((BITS_PER_UINT64+29)/30)
#define LLWIDTH   BITS_PER_INT64
#define INTWIDTH   BITS_PER_INT
#define SC_INTWIDTH   64

Typedefs

typedef unsigned char sc_dt::uchar
typedef int sc_dt::small_type
typedef unsigned int sc_dt::sc_digit
typedef long long sc_dt::int64
typedef unsigned long long sc_dt::uint64
typedef ::std::ios::fmtflags sc_dt::fmtflags
typedef int64 sc_dt::int_type
typedef uint64 sc_dt::uint_type


Define Documentation

#define BITS_PER_BYTE   8

Definition at line 80 of file sc_nbdefs.h.

#define BITS_PER_CHAR   8

Definition at line 153 of file sc_nbdefs.h.

#define BITS_PER_DIGIT   30

Definition at line 96 of file sc_nbdefs.h.

#define BITS_PER_DIGIT_TYPE   32

Definition at line 92 of file sc_nbdefs.h.

#define BITS_PER_HALF_DIGIT   (BITS_PER_DIGIT / 2)

Definition at line 104 of file sc_nbdefs.h.

#define BITS_PER_INT   (sizeof(int) * BITS_PER_CHAR)

Definition at line 154 of file sc_nbdefs.h.

#define BITS_PER_INT64   (sizeof(long long) * BITS_PER_CHAR)

Definition at line 156 of file sc_nbdefs.h.

#define BITS_PER_LONG   (sizeof(long) * BITS_PER_CHAR)

Definition at line 155 of file sc_nbdefs.h.

#define BITS_PER_UINT   (sizeof(unsigned int) * BITS_PER_CHAR)

Definition at line 157 of file sc_nbdefs.h.

#define BITS_PER_UINT64   (sizeof(unsigned long long) * BITS_PER_CHAR)

Definition at line 159 of file sc_nbdefs.h.

#define BITS_PER_ULONG   (sizeof(unsigned long) * BITS_PER_CHAR)

Definition at line 158 of file sc_nbdefs.h.

#define BYTE_MASK   255

Definition at line 82 of file sc_nbdefs.h.

#define BYTE_RADIX   256

Definition at line 81 of file sc_nbdefs.h.

#define BYTES_PER_DIGIT   4

Definition at line 95 of file sc_nbdefs.h.

#define BYTES_PER_DIGIT_TYPE   4

Definition at line 91 of file sc_nbdefs.h.

#define DIGIT_MASK   (DIGIT_RADIX - 1)

Definition at line 98 of file sc_nbdefs.h.

#define DIGIT_RADIX   (1ul << BITS_PER_DIGIT)

Definition at line 97 of file sc_nbdefs.h.

#define DIGITS_PER_CHAR   1

Definition at line 162 of file sc_nbdefs.h.

#define DIGITS_PER_INT   ((BITS_PER_INT+29)/30)

Definition at line 163 of file sc_nbdefs.h.

#define DIGITS_PER_INT64   ((BITS_PER_INT64+29)/30)

Definition at line 165 of file sc_nbdefs.h.

#define DIGITS_PER_LONG   ((BITS_PER_LONG+29)/30)

Definition at line 164 of file sc_nbdefs.h.

#define DIGITS_PER_UINT   ((BITS_PER_UINT+29)/30)

Definition at line 166 of file sc_nbdefs.h.

#define DIGITS_PER_UINT64   ((BITS_PER_UINT64+29)/30)

Definition at line 168 of file sc_nbdefs.h.

#define DIGITS_PER_ULONG   ((BITS_PER_ULONG+29)/30)

Definition at line 167 of file sc_nbdefs.h.

#define DIV_CEIL (  )     DIV_CEIL2(x, BITS_PER_DIGIT)

Definition at line 113 of file sc_nbdefs.h.

#define DIV_CEIL2 ( x,
 )     (((x) - 1) / (y) + 1)

Definition at line 109 of file sc_nbdefs.h.

#define HALF_DIGIT_MASK   (HALF_DIGIT_RADIX - 1)

Definition at line 106 of file sc_nbdefs.h.

#define HALF_DIGIT_RADIX   (1ul << BITS_PER_HALF_DIGIT)

Definition at line 105 of file sc_nbdefs.h.

#define INTWIDTH   BITS_PER_INT

Definition at line 183 of file sc_nbdefs.h.

#define LLWIDTH   BITS_PER_INT64

Definition at line 182 of file sc_nbdefs.h.

#define LOG2_BITS_PER_BYTE   3

Definition at line 86 of file sc_nbdefs.h.

#define SC_DT_MIXED_COMMA_OPERATORS

Definition at line 60 of file sc_nbdefs.h.

#define SC_INTWIDTH   64

Definition at line 189 of file sc_nbdefs.h.

#define SC_NEG   -1

Definition at line 68 of file sc_nbdefs.h.

#define SC_NOSIGN   2

Definition at line 71 of file sc_nbdefs.h.

#define SC_POS   1

Definition at line 70 of file sc_nbdefs.h.

#define SC_ZERO   0

Definition at line 69 of file sc_nbdefs.h.


Generated on Wed Jan 21 15:32:10 2009 for SystemC by  doxygen 1.5.5