CPP macro for Byte-order

Gabriel Dos Reis gdr@codesourcery.com
Thu Jan 17 10:47:00 GMT 2002


Hi,

  I'm currently working on the numeric_limits<> support for floating
point types (mainly for things like NaNs, SNaNs, Infinities,
subnormals and such) in the C++ runtime system.  I would like to know
whether there is a CPP macro that defines the endianness selected for
compiling a given program under a given OS.  Any hints?

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com



More information about the Gcc mailing list