summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/bits/endian.h
blob: 14cd5c603fc6b82c24a193f5f6486b0eb47c6e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ARM is (usually) little-endian.
 * Older FPU style (FPA) is always big-endian.
 * Newer FPU style (VFP) is same as host byte-order.
 */

#ifndef _ENDIAN_H
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
#endif

#ifdef __ARMEB__
#define __BYTE_ORDER __BIG_ENDIAN
#else
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
#ifdef __VFP_FP__
#define __FLOAT_WORD_ORDER __BYTE_ORDER 
#else
#define __FLOAT_WORD_ORDER __BIG_ENDIAN
#endif