~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/ipxe/src/include/endian.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

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