20a21
>
22a24,26
>
> Original Author: Ali Dasdan, Synopsys, Inc.
>
25,26c29
< #ifndef __SYSTEMC_DT_SC_NBDEFS_H__
< #define __SYSTEMC_DT_SC_NBDEFS_H__
---
> /*****************************************************************************
27a31,67
> MODIFICATION LOG - modifiers, enter your name, affiliation, date and
> changes you are making here.
>
> Name, Affiliation, Date: Torsten Maehne, Berner Fachhochschule,
> 2016-09-24
> Description of Modification: Move constant definitions to the header so that
> that their value is known at compile time.
>
> *****************************************************************************/
>
> // $Log: sc_nbdefs.h,v $
> // Revision 1.7 2011/02/18 20:19:15 acg
> // Andy Goodrich: updating Copyright notice.
> //
> // Revision 1.6 2011/02/18 20:09:34 acg
> // Philipp A. Hartmann: added alternative #define for Windows to guard.
> //
> // Revision 1.5 2011/01/20 16:52:20 acg
> // Andy Goodrich: changes for IEEE 1666 2011.
> //
> // Revision 1.4 2010/02/08 18:35:55 acg
> // Andy Goodrich: Philipp Hartmann's changes for Solaris and Linux 64.
> //
> // Revision 1.2 2009/05/22 16:06:29 acg
> // Andy Goodrich: process control updates.
> //
> // Revision 1.1.1.1 2006/12/15 20:20:05 acg
> // SystemC 2.3
> //
> // Revision 1.3 2006/01/13 18:49:32 acg
> // Added $Log command so that CVS check in comments are reproduced in the
> // source.
> //
>
> #ifndef __SYSTEMC_EXT_DT_INT_SC_NBDEFS_HH__
> #define __SYSTEMC_EXT_DT_INT_SC_NBDEFS_HH__
>
80,81c120,121
< // the functions that are aware of the internal representation of digits,
< // e.g., get/set_packed_rep().
---
> // the functions that are aware of the internal representation of
> // digits, e.g., get/set_packed_rep().
123c163
< typedef unsigned int sc_digit; // 32-bit unsigned integer
---
> typedef unsigned int sc_digit; // 32-bit unsigned integer
126a167,170
> #if defined(__x86_64__) || defined(__aarch64__)
> typedef long long int64;
> typedef unsigned long long uint64;
> #else
128a173
> #endif
130,131c175,176
< static const uint64 UINT64_ZERO = 0ULL;
< static const uint64 UINT64_ONE = 1ULL;
---
> static const uint64 UINT64_ZERO = 0ULL;
> static const uint64 UINT64_ONE = 1ULL;
133a179
>
136,141c182,187
< #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(::sc_dt::int64) * 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_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(::sc_dt::int64) * BITS_PER_CHAR)
> #define BITS_PER_UINT (sizeof(unsigned int) * BITS_PER_CHAR)
> #define BITS_PER_ULONG (sizeof(unsigned long) * BITS_PER_CHAR)
145,151c191,197
< #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 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)
168c214
< #endif
---
> #endif // __SYSTEMC_EXT_DT_INT_SC_NBDEFS_HH__