summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qstd/memory.c2
-rw-r--r--qstd/memory.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/qstd/memory.c b/qstd/memory.c
index b12ec75..61c5911 100644
--- a/qstd/memory.c
+++ b/qstd/memory.c
@@ -17,7 +17,7 @@ void zero(void* buf, int size) {
((uint8_t*)buf)[i] = 0;
}
-static uintptr_t align_address(
+uintptr_t align_address(
uintptr_t ad,
size_t al
) {
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 <stddef.h>
+#include <stdint.h>
+
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);