#include
int main (void)
{
unsigned int MAX = 32;
unsigned int index = 31;
index = 31;
index = (index + 100) % MAX;
printf ("index = %d
", index);
index = 31;
index = (index + 100) & (MAX - 1);
printf ("index = %d
", index);
return 0;
}