Back to index

glibc  2.9
endian.h
Go to the documentation of this file.
00001 #ifndef _ENDIAN_H
00002 # error "Never use <bits/endian.h> directly; include <endian.h> instead."
00003 #endif
00004 
00005 /* ARM can be either big or little endian.  */
00006 #ifdef __ARMEB__
00007 #define __BYTE_ORDER __BIG_ENDIAN
00008 #else
00009 #define __BYTE_ORDER __LITTLE_ENDIAN
00010 #endif
00011 
00012 /* FPA floating point units are always big-endian, irrespective of the
00013    CPU endianness.  VFP floating point units use the same endianness
00014    as the rest of the system.  */
00015 #ifdef __VFP_FP__
00016 #define __FLOAT_WORD_ORDER __BYTE_ORDER
00017 #else
00018 #define __FLOAT_WORD_ORDER __BIG_ENDIAN
00019 #endif