Changeset 84176f3 in mainline for boot/generic/include/align.h
- Timestamp:
- 2019-04-10T15:04:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8df0306
- Parents:
- b58728f
- git-author:
- Petr Pavlu <setup@…> (2019-03-31 14:09:57)
- git-committer:
- Jakub Jermář <jakub@…> (2019-04-10 15:04:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/align.h
rb58728f r84176f3 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 51 58 #endif 52 59
Note:
See TracChangeset
for help on using the changeset viewer.