Changeset c520034 in mainline for kernel/generic/include/align.h
- Timestamp:
- 2011-12-31T18:19:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 295f658, 77c2b02, 96cd5b4
- Parents:
- 852052d (diff), 22f0561 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/include/align.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/align.h
r852052d rc520034 42 42 * 43 43 * @param s Address or size to be aligned. 44 * @param a Size of alignment, must be power of 2.44 * @param a Size of alignment, must be a power of 2. 45 45 */ 46 46 #define ALIGN_DOWN(s, a) ((s) & ~((a) - 1)) … … 50 50 * 51 51 * @param s Address or size to be aligned. 52 * @param a Size of alignment, must be power of 2.52 * @param a Size of alignment, must be a power of 2. 53 53 */ 54 54 #define ALIGN_UP(s, a) (((s) + ((a) - 1)) & ~((a) - 1)) 55 56 /** Check alignment. 57 * 58 * @param s Address or size to be checked for alignment. 59 * @param a Size of alignment, must be a power of 2. 60 */ 61 #define IS_ALIGNED(s, a) (ALIGN_UP((s), (a)) == (s)) 55 62 56 63 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
