summaryrefslogtreecommitdiff
path: root/src/arena.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arena.h')
-rw-r--r--src/arena.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arena.h b/src/arena.h
index a94001b..e656f9a 100644
--- a/src/arena.h
+++ b/src/arena.h
@@ -11,7 +11,7 @@ typedef struct arena arena;
11typedef arena simplearena; 11typedef arena simplearena;
12 12
13#define ISPOWOF2(x) (((x) & ((x) - 1)) == 0) 13#define ISPOWOF2(x) (((x) & ((x) - 1)) == 0)
14const size_t MEM_ALIGN_BYTES = (2 * sizeof(void*)); 14static const size_t MEM_ALIGN_BYTES = (2 * sizeof(void*)); // Hey, the static keyword did something for once!
15#define MEM_ALIGN(x) ((x) + (((x) & (MEM_ALIGN_BYTES - 1)) != 0) * (MEM_ALIGN_BYTES - ((x) & (MEM_ALIGN_BYTES - 1)))) 15#define MEM_ALIGN(x) ((x) + (((x) & (MEM_ALIGN_BYTES - 1)) != 0) * (MEM_ALIGN_BYTES - ((x) & (MEM_ALIGN_BYTES - 1))))
16 16
17int arena_init(arena **a, size_t bytes); 17int arena_init(arena **a, size_t bytes);