Created
March 6, 2019 09:02
-
-
Save hewumars/e6d2196f94ea53d82de7d9249830269c to your computer and use it in GitHub Desktop.
16Byte和32Byte ALIGN对齐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ALIGN_16 16 | |
#define ALIGN_32 32 | |
#define HW_ALIGN_16(u32Num) ((u32Num+ALIGN_16-1)/ALIGN_16*ALIGN_16) | |
#define HW_ALIGN_32(u32Num) ((u32Num+ALIGN_32-1)/ALIGN_32*ALIGN_32) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment