a little bit of this. a little bit of that (hashmap stuff)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user