Reverse bits in an integer