Remove unused free() function
[coreboot.git] / src / include / stdlib.h
blobbb57ab33fb19f7fdd26e0ab7503c8334a35a0ce0
1 #ifndef STDLIB_H
2 #define STDLIB_H
4 #include <stddef.h>
6 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
8 #define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1UL)
9 #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
11 #define MIN(a,b) ((a) < (b) ? (a) : (b))
12 #define MAX(a,b) ((a) > (b) ? (a) : (b))
14 #if !defined(__PRE_RAM__)
15 void *memalign(size_t boundary, size_t size);
16 void *malloc(size_t size);
17 #endif
19 #endif /* STDLIB_H */