From c11d4760fff90534a7766e177870c0543daed2be Mon Sep 17 00:00:00 2001 From: antifallobst Date: Wed, 22 Feb 2023 13:21:31 +0100 Subject: [PATCH] feature (kernel): Defined 'position_T' --- kernel/inc/utils/math.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/inc/utils/math.h b/kernel/inc/utils/math.h index bd506a4..0cac253 100644 --- a/kernel/inc/utils/math.h +++ b/kernel/inc/utils/math.h @@ -23,6 +23,11 @@ #define CEIL_TO(a, b) (a % b ? a + b - (a % b) : a) #define FLOOR_TO(a, b) (a - (a % b)) +typedef struct { + uint64_t x; + uint64_t y; +} position_T; + uint64_t pow(uint64_t base, uint64_t exp); uint64_t abs(int64_t n);