summaryrefslogtreecommitdiff
path: root/COUNT/support/common.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 08:15:29 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 08:15:29 +0100
commit8e71c657efe8c10648849a7dc31c1689bbc7882d (patch)
tree07352253f127bf8362f8711c281ebe6c0bd232bb /COUNT/support/common.h
parent86bd03ef7598ca30649f99ba2d6b691d1d647e93 (diff)
COUNT: indent -linux
Diffstat (limited to 'COUNT/support/common.h')
-rwxr-xr-xCOUNT/support/common.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/COUNT/support/common.h b/COUNT/support/common.h
index 72270b0..afd5b2d 100755
--- a/COUNT/support/common.h
+++ b/COUNT/support/common.h
@@ -3,15 +3,15 @@
// Structures used by both the host and the dpu to communicate information
typedef struct {
- uint32_t size;
+ uint32_t size;
enum kernels {
- kernel1 = 0,
- nr_kernels = 1,
+ kernel1 = 0,
+ nr_kernels = 1,
} kernel;
} dpu_arguments_t;
typedef struct {
- uint32_t t_count;
+ uint32_t t_count;
} dpu_results_t;
// Transfer size between MRAM and WRAM
@@ -26,11 +26,12 @@ typedef struct {
// Data type
#define T uint64_t
-#define REGS (BLOCK_SIZE >> 3) // 64 bits
+#define REGS (BLOCK_SIZE >> 3) // 64 bits
// Sample predicate
-bool pred(const T x){
- return (x % 2) == 0;
+bool pred(const T x)
+{
+ return (x % 2) == 0;
}
#ifndef ENERGY