summaryrefslogtreecommitdiff
path: root/as/byteord.h
blob: a0d14e198b2b937c73cece230a22cf1ae8e4c705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* byteord.h - byte order dependencies for C compiler, assembler, linker */

/* These are for the targets of everything and for linker source too. */

#ifdef I8086
# define BIG_ENDIAN 0
# define LONG_BIG_ENDIAN 0	/* except longs are back to front for Xenix */
#endif

#ifdef I80386
# define BIG_ENDIAN 0
# define LONG_BIG_ENDIAN 0
#endif

#ifdef MC6809
# define BIG_ENDIAN 1		/* byte order in words is high-low */
# define LONG_BIG_ENDIAN 1	/* byte order in longs is high-low */
#endif