X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=3b_sim%2Fcdat.hpp;h=2046de5914162772fbfe2fbf497f7aee57f4b551;hb=2c106febdc5883442ffc4341933e1bd23829df4a;hp=e318affdae42e6e56a0d19126009224c28093f17;hpb=31d88f201bf427d70924b9737ecdb6e0611939d3;p=calu.git diff --git a/3b_sim/cdat.hpp b/3b_sim/cdat.hpp index e318aff..2046de5 100644 --- a/3b_sim/cdat.hpp +++ b/3b_sim/cdat.hpp @@ -4,7 +4,12 @@ #include #include -typedef int CDat; +typedef __uint32_t CDat; +typedef __uint64_t CDatd; -static_assert(sizeof(CDat) == 4, "The size of the datatype for int is NOT 4 bytes (32 Bit!)"); +#define BYTE_COUNT 4 + +#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