set SwapBits to work with uint