2046de5914162772fbfe2fbf497f7aee57f4b551
[calu.git] / 3b_sim / cdat.hpp
1 #ifndef __CDAT_H__
2 #define __CDAT_H__
3
4 #include <string>
5 #include <sstream>
6
7 typedef __uint32_t CDat;
8 typedef __uint64_t CDatd;
9
10 #define BYTE_COUNT 4
11
12 #define BIT_LEN (BYTE_COUNT * 8)
13 static_assert(sizeof(CDat) == BYTE_COUNT, "The size of the datatype for int is NOT 4 bytes (32 Bit!)");
14 static_assert(sizeof(CDatd) > BYTE_COUNT, "The size of the datatype for double int is NOT bigger than 4 bytes (32 Bit!)");
15 #endif