byteswap: try to avoid __builtin_constant_p gcc bug