File: endianness.h

package info (click to toggle)
mupdf 1.25.1%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 21,620 kB
  • sloc: ansic: 270,929; python: 20,709; java: 6,916; javascript: 1,865; makefile: 1,130; xml: 550; sh: 430; cpp: 325; cs: 313; awk: 10; sed: 7; lisp: 3
file content (21 lines) | stat: -rw-r--r-- 795 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN ||	\
	defined(__BIG_ENDIAN__) ||				\
	defined(__ARMEB__) ||					\
	defined(__THUMBEB__) ||					\
	defined(__AARCH64EB__) ||				\
	defined(_MIBSEB) || defined(__MIBSEB) || defined(__MIBSEB__)
// It's a big-endian target architecture
#	define L_BIG_ENDIAN
#elif defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN ||	\
	defined(__LITTLE_ENDIAN__) ||					\
	defined(__ARMEL__) ||						\
	defined(__THUMBEL__) ||						\
	defined(__AARCH64EL__) ||					\
	defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) ||	\
	defined(_M_IX86) || defined(_M_X64) ||				\
	defined(_M_IS64) || defined(_M_ARM)
// It's a little-endian target architecture
#   define L_LITTLE_ENDIAN
#else
#error "I don't know what architecture this is!"
#endif