File: endian.h

package info (click to toggle)
glibc 2.19-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 202,392 kB
  • ctags: 140,042
  • sloc: ansic: 969,214; asm: 241,208; sh: 10,046; makefile: 8,471; cpp: 3,595; perl: 2,077; pascal: 1,839; awk: 1,704; yacc: 317; sed: 73
file content (16 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* The MIPS architecture has selectable endianness.
   Linux/MIPS exists in two both little and big endian flavours and we
   want to be able to share the installed headerfiles between both,
   so we define __BYTE_ORDER based on GCC's predefines.  */

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

#ifdef __MIPSEB__
# define __BYTE_ORDER __BIG_ENDIAN
#else
# ifdef __MIPSEL__
#  define __BYTE_ORDER __LITTLE_ENDIAN
# endif
#endif