aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mips/bits/endian.h
blob: 43ce0098a4c1d0b2402c18fd7cf32b9f83f01274 (plain)
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

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