X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=3b_sim%2Fcdat.hpp;fp=3b_sim%2Fcdat.hpp;h=b5d212b152f9a66fa8c61bc55194b55e1beb0a05;hb=815c827247bc211e4785016985666fbfd201f423;hp=39ea074a4e251a420d162a220c740369fef4c4c2;hpb=d1dab9a35d864d5533e2a9e8d49f1ad840773687;p=calu.git diff --git a/3b_sim/cdat.hpp b/3b_sim/cdat.hpp index 39ea074..b5d212b 100644 --- a/3b_sim/cdat.hpp +++ b/3b_sim/cdat.hpp @@ -7,7 +7,9 @@ typedef __UINT32_TYPE__ CDat; typedef __UINT64_TYPE__ CDatd; -#define BIT_LEN 32 -static_assert(sizeof(CDat) == 4, "The size of the datatype for int is NOT 4 bytes (32 Bit!)"); -static_assert(sizeof(CDatd) > 4, "The size of the datatype for double int is NOT bigger than 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