use kernel macro to detect endian