What\'s a fast way to round up an unsigned int to a multiple of 4?
int
4
A multiple of 4 has the two least significant bits 0, right? So I could
If by "next multiple of 4" you mean the smallest multiple of 4 that is larger than your unsigned int value myint, then this will work:
(myint | 0x03) + 1;