uint32_t reverseBits(uint32_t n) {
uint32_t ret=0, move=31;
while(n!=0)
{
ret+=(n&1)<<move;
n=n>>1;
move-=1;
}
return ret;
}
uint32_t reverseBits(uint32_t n) {
uint32_t ret=0, move=31;
while(n!=0)
{
ret+=(n&1)<<move;
n=n>>1;
move-=1;
}
return ret;
}