progs: Makefile adjustments
[calu.git] / 3b_sim / cdat.hpp
index e318affdae42e6e56a0d19126009224c28093f17..2046de5914162772fbfe2fbf497f7aee57f4b551 100644 (file)
@@ -4,7 +4,12 @@
 #include <string>
 #include <sstream>
 
-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