对整型数向上取整为2^n的倍数


#define __ALIGN = 8

size_t RoundUp(size_t num){
return ((num + (__ALIGN - 1)) & ~(__ALIGN));
}

相关