Write a function to reverse the bits of a 32-bit unsigned integer and optimize it for execution speed.