[patch] Find if we are big endian at compile time

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Apr 11 16:45:19 PDT 2013


> It's worth noting that __BYTE_ORDER__ and friends are only available
> starting with GCC 4.6.

gah, that kill the patch :-(

On OS X gcc defines __LITTLE_ENDIAN__. Do you know if that is also
true of other platforms?

> -Nathan

Cheers,
Rafael



More information about the llvm-commits mailing list