a little bit of this. a little bit of that (hashmap stuff)

This commit is contained in:
2026-02-26 20:14:44 +01:00
parent fbb340d465
commit 0f7f092ad3
2 changed files with 27 additions and 20 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
#include <string.h>
typedef union any_align { char c; int i; long l; long long ll; float f; double d; void *p; long double ld; } any_align_t;
#define MAX_ALIGN ((size_t) sizeof(any_align_t))
#define ALIGN_OF(TYPE) ((size_t)(&((struct{char c; TYPE t;}*) 0)->t))
#define MAX_ALIGN (ALIGN_OF(any_align_t))
#define KB (1024)
#define MB (KB * KB)
#define GB (KB * KB * KB)