Add the aom_align_addr macro.
It replaces the align_addr macro in aom_mem_intrnl.h and the
yv12_align_addr macro in yv12config.c.
Change-Id: I173a1cce54ebce5ff5472ec4c85947b5c4e520f6
diff --git a/aom_mem/aom_mem.h b/aom_mem/aom_mem.h
index 4b1fa45..f533ab9 100644
--- a/aom_mem/aom_mem.h
+++ b/aom_mem/aom_mem.h
@@ -38,6 +38,10 @@
void aom_free(void *memblk);
void *aom_memset16(void *dest, int val, size_t length);
+/*returns an addr aligned to the byte boundary specified by align*/
+#define aom_align_addr(addr, align) \
+ (void *)(((size_t)(addr) + ((align)-1)) & ~(size_t)((align)-1))
+
#include <string.h>
#ifdef AOM_MEM_PLTFRM