Skip to content

Instantly share code, notes, and snippets.

@hewumars
Created March 6, 2019 09:02
Show Gist options
  • Save hewumars/e6d2196f94ea53d82de7d9249830269c to your computer and use it in GitHub Desktop.
Save hewumars/e6d2196f94ea53d82de7d9249830269c to your computer and use it in GitHub Desktop.
16Byte和32Byte ALIGN对齐
#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