GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EDS / V2-10-0
Constituent: eds     Tag: mv2304
Defines | |
#define | ENDIANNESS_K_UNKNOWN 0 |
Value of ENDIANNESS the endianness of the target is undefined. | |
#define | ENDIANNESS_K_LITTLE 1 |
Value of ENDIANNESS if the target is a little endian machine. | |
#define | ENDIANNESS_K_BIG 2 |
Value of ENDIANNESS if the target is a big endian machine machine. | |
#define | ENDIANNESS ENDIANNESS_K_UNKNOWN |
ENDINANESS assumes one of the values, | |
#define | ENDIANNESS_IS_LITTLE ENDIANNESS_K_UNKNOWN |
Defined and set to a non-zero value, ENDIANNESS_K_LITTLE, if the target is a little endian machine. | |
#define | ENDIANNESS_IS_BIG ENDIANNESS_K_UNKNOWN |
Defined and set to a non-zero value, ENDIANNESS_BIG, if the target is a big endian machine. |
CVS $Id: EDS_endianness.h,v 1.4 2005/10/13 22:00:55 russell Exp $
#if ENDIANNESS_IS_LITTLE / * Do little endian kind of things * / #elif ENDIANNESS_IS_BIG / * Do big endian kind of things * / #else #error _FILE_ Endianness not determined in this file #endif
#if ENDIANESS_IS_LITTLE / * Do little endian kind of things * / #else / * Do big endian kind of things * / #endif
#define ENDIANNESS ENDIANNESS_K_UNKNOWN |
ENDINANESS assumes one of the values,
if defined (ENDIANNESS) && (ENDIANNESS == ENDIANNESS_K_LITTLE) { . . } elif defined (ENDIANNESS) && (ENDIANNESS == ENDIANNESS_K_BIG) { . . } else { . / * Endianness unknown * / }