diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 08:25:34 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 08:25:34 +0100 |
commit | c2bf48b415e8e51d59bbec59635a02ba4e1cb4c4 (patch) | |
tree | c06e2048de3d6dac944f48038389790fcd014e17 /VA/support/common.h | |
parent | 0bebc23cf55adfc6a25c0d5f4fa9061ce093e0d7 (diff) |
VA: dos2unix; indent -linux
Diffstat (limited to 'VA/support/common.h')
-rwxr-xr-x | VA/support/common.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/VA/support/common.h b/VA/support/common.h index c1043fd..cee09e2 100755 --- a/VA/support/common.h +++ b/VA/support/common.h @@ -3,11 +3,11 @@ // Structures used by both the host and the dpu to communicate information typedef struct { - uint32_t size; - uint32_t transfer_size; + uint32_t size; + uint32_t transfer_size; enum kernels { - kernel1 = 0, - nr_kernels = 1, + kernel1 = 0, + nr_kernels = 1, } kernel; } dpu_arguments_t; @@ -24,34 +24,34 @@ typedef struct { // Data type #ifdef UINT32 #define T uint32_t -#define DIV 2 // Shift right to divide by sizeof(T) +#define DIV 2 // Shift right to divide by sizeof(T) #elif UINT64 #define T uint64_t -#define DIV 3 // Shift right to divide by sizeof(T) +#define DIV 3 // Shift right to divide by sizeof(T) #elif INT32 #define T int32_t -#define DIV 2 // Shift right to divide by sizeof(T) +#define DIV 2 // Shift right to divide by sizeof(T) #elif INT64 #define T int64_t -#define DIV 3 // Shift right to divide by sizeof(T) +#define DIV 3 // Shift right to divide by sizeof(T) #elif FLOAT #define T float -#define DIV 2 // Shift right to divide by sizeof(T) +#define DIV 2 // Shift right to divide by sizeof(T) #elif DOUBLE #define T double -#define DIV 3 // Shift right to divide by sizeof(T) +#define DIV 3 // Shift right to divide by sizeof(T) #elif CHAR #define T char -#define DIV 0 // Shift right to divide by sizeof(T) +#define DIV 0 // Shift right to divide by sizeof(T) #elif SHORT #define T short -#define DIV 1 // Shift right to divide by sizeof(T) +#define DIV 1 // Shift right to divide by sizeof(T) #endif #ifndef ENERGY #define ENERGY 0 #endif -#define PRINT 0 +#define PRINT 0 #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" |