I need to make the last 5 bits of the unsigned int become zero(1111_1111 to 1110_0000)
There are two solution
unsigned int number = 0xFFFF; unsigned int temp_one = number & (~0x1F); unsigned int temp_two = number >> 5 << 5;
which one is faster?
I write a small program to measure the time
But it is always 0 after optimize
Thanks a lot