G
Guest
Following macro is found inside Microsoft C++ source code:
#define _INTSIZEOF(n) ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )
The result between _INTSIZEOF(n) and sizeof(n) are always the same. I'm not sure why they defined this one. Specifically, what's the purpose of minus one for ?
Anybody has any ideas?
Thanks
#define _INTSIZEOF(n) ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )
The result between _INTSIZEOF(n) and sizeof(n) are always the same. I'm not sure why they defined this one. Specifically, what's the purpose of minus one for ?
Anybody has any ideas?
Thanks