summary refs log tree commit diff
path: root/sysdeps/mips/bits/endian.h
blob: 9586104ccd78aca900b292c03b05d7e618820e26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* The MIPS architecture has selectable endianness.
   This file is for a machine using big-endian mode.  */

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

#if __MIPSEB
# define __BYTE_ORDER __BIG_ENDIAN
#endif
#if __MIPSEL
# define __BYTE_ORDER __LITTLE_ENDIAN
#endif