Tidy 32-bit support, using case statement.