Changes in boot/generic/include/align.h [84176f3:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/align.h
r84176f3 r9d58539 49 49 #define ALIGN_UP(s, a) (((s) + ((a) - 1)) & ~((a) - 1)) 50 50 51 /** Check alignment.52 *53 * @param s Address or size to be checked for alignment.54 * @param a Size of alignment, must be a power of 2.55 */56 #define IS_ALIGNED(s, a) (ALIGN_UP((s), (a)) == (s))57 58 51 #endif 59 52
Note:
See TracChangeset
for help on using the changeset viewer.