summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 1dab352071..f6d441ef2a 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -114,7 +114,7 @@ int get_cpu_boost_counter(void);
114#define ALIGN_UP_P2(n, p2) ALIGN_DOWN_P2((n) + P2_M1(p2),p2) 114#define ALIGN_UP_P2(n, p2) ALIGN_DOWN_P2((n) + P2_M1(p2),p2)
115 115
116/* align up or down to nearest integer multiple of a */ 116/* align up or down to nearest integer multiple of a */
117#define ALIGN_DOWN(n, a) ((typeof(n))((typeof(a))(n)/(a)*(a))) 117#define ALIGN_DOWN(n, a) ((typeof(n))((uintptr_t)(n)/(a)*(a)))
118#define ALIGN_UP(n, a) ALIGN_DOWN((n)+((a)-1),a) 118#define ALIGN_UP(n, a) ALIGN_DOWN((n)+((a)-1),a)
119 119
120/* align start and end of buffer to nearest integer multiple of a */ 120/* align start and end of buffer to nearest integer multiple of a */