The attached patch adds missing bits to ACPI to make Windows XP and Windows Vista...
[coreboot.git] / src / include / stdlib.h
index e2b37e6fe9c74c1a832a45463ae1759a538549f0..c3052bd209007e62fb47e1aa29125fc8494f8fa6 100644 (file)
@@ -5,6 +5,9 @@
 
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
 
+#define ALIGN(x,a)              __ALIGN_MASK(x,(typeof(x))(a)-1)
+#define __ALIGN_MASK(x,mask)    (((x)+(mask))&~(mask))
+
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 #define MAX(a,b) ((a) > (b) ? (a) : (b))