iPXE
endian.h
Go to the documentation of this file.
1 #ifndef _ENDIAN_H
2 #define _ENDIAN_H
3 
4 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
5 FILE_SECBOOT ( PERMITTED );
6 
7 /** Constant representing little-endian byte order
8  *
9  * Little-endian systems should define BYTE_ORDER as LITTLE_ENDIAN.
10  * This constant is intended to be used only at compile time.
11  */
12 #ifndef __LITTLE_ENDIAN
13 #define __LITTLE_ENDIAN 0x44332211UL
14 #endif
15 
16 /** Constant representing big-endian byte order
17  *
18  * Big-endian systems should define BYTE_ORDER as BIG_ENDIAN.
19  * This constant is intended to be used only at compile time.
20  */
21 #ifndef __BIG_ENDIAN
22 #define __BIG_ENDIAN 0x11223344UL
23 #endif
24 
25 #include "bits/endian.h"
26 
27 #endif /* _ENDIAN_H */
FILE_SECBOOT(PERMITTED)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)