From 82c55e96d573b5d58e53b21ca3c91c50a67ed40b Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 18:24:28 +1100 Subject: expose align_address --- qstd/memory.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qstd/memory.h') diff --git a/qstd/memory.h b/qstd/memory.h index c723131..a0b819a 100644 --- a/qstd/memory.h +++ b/qstd/memory.h @@ -1,8 +1,12 @@ #ifndef memory_h #define memory_h +#include +#include + int aligned(const void* p, int a); int align_size(int s, int a); +uintptr_t align_address(uintptr_t ad, size_t al); void zero(void* buf, int size); -- cgit v1.2.3-54-g00ecf