diff options
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r-- | firmware/export/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 47dd858d81..e83ee53d96 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -134,6 +134,8 @@ int get_cpu_boost_counter(void); | |||
134 | (size) = __a2 > __a1 ? __a2 - __a1 : 0; \ | 134 | (size) = __a2 > __a1 ? __a2 - __a1 : 0; \ |
135 | }) | 135 | }) |
136 | 136 | ||
137 | #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) | ||
138 | |||
137 | #define PTR_ADD(ptr, x) ((typeof(ptr))((char*)(ptr) + (x))) | 139 | #define PTR_ADD(ptr, x) ((typeof(ptr))((char*)(ptr) + (x))) |
138 | #define PTR_SUB(ptr, x) ((typeof(ptr))((char*)(ptr) - (x))) | 140 | #define PTR_SUB(ptr, x) ((typeof(ptr))((char*)(ptr) - (x))) |
139 | 141 | ||