Refactor some defines

This commit is contained in:
Vitaliy Filippov
2025-11-22 18:07:44 +03:00
parent a1c17d90a3
commit d75b1cb2d2
11 changed files with 44 additions and 34 deletions
+5
View File
@@ -6,6 +6,11 @@
#include <malloc.h>
#include <stdlib.h>
// Memory allocation alignment (page size is usually optimal)
#ifndef MEM_ALIGNMENT
#define MEM_ALIGNMENT 4096
#endif
#pragma GCC visibility push(default)
inline void* memalign_or_die(size_t alignment, size_t size)