X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=3b_sim%2Fcdat.hpp;h=2046de5914162772fbfe2fbf497f7aee57f4b551;hb=381f0449828b8451fbbe78878816a6156b078bf6;hp=e9f88f6f93156657238620d78c951d4a469f56c8;hpb=12d2a7c14a42e01b6caf2a097db32404a403d213;p=calu.git diff --git a/3b_sim/cdat.hpp b/3b_sim/cdat.hpp index e9f88f6..2046de5 100644 --- a/3b_sim/cdat.hpp +++ b/3b_sim/cdat.hpp @@ -4,9 +4,12 @@ #include #include -typedef int CDat; +typedef __uint32_t CDat; +typedef __uint64_t CDatd; -#define BIT_LEN 32 +#define BYTE_COUNT 4 -//static_assert(sizeof(CDat) == 4, "The size of the datatype for int is NOT 4 bytes (32 Bit!)"); +#define BIT_LEN (BYTE_COUNT * 8) +static_assert(sizeof(CDat) == BYTE_COUNT, "The size of the datatype for int is NOT 4 bytes (32 Bit!)"); +static_assert(sizeof(CDatd) > BYTE_COUNT, "The size of the datatype for double int is NOT bigger than 4 bytes (32 Bit!)"); #endif