Index: boot/generic/include/align.h
===================================================================
--- boot/generic/include/align.h	(revision 4872160f9c176d257f1757469d1adec8033d95f9)
+++ boot/generic/include/align.h	(revision a3f63ac154a8851b99a2cdc01fb73050f4b9ca43)
@@ -49,4 +49,11 @@
 #define ALIGN_UP(s, a)  (((s) + ((a) - 1)) & ~((a) - 1))
 
+/** Check alignment.
+ *
+ * @param s Address or size to be checked for alignment.
+ * @param a Size of alignment, must be a power of 2.
+ */
+#define IS_ALIGNED(s, a)  (ALIGN_UP((s), (a)) == (s))
+
 #endif
 
