summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/microblaze/bits/endian.h
blob: 56fcd5dd9a6688ca25a8c84581f84a68cc944735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * libc/sysdeps/linux/microblaze/bits/endian.h -- Define processor endianess
 *
 *  Copyright (C) 2003  John Williams <jwilliams@itee.uq.edu.au>
 *  Copyright (C) 2001  NEC Corporation
 *  Copyright (C) 2001  Miles Bader <miles@gnu.org>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License.  See the file COPYING.LIB in the main
 * directory of this archive for more details.
 *
 * Written by Miles Bader <miles@gnu.org>
 * Microblaze port by John Williams
 */

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

/* Note: Toolchain supplies _BIG_ENDIAN or _LITTLE_ENDIAN */
#if defined(_BIG_ENDIAN)
# define __BYTE_ORDER __BIG_ENDIAN
#elif defined(_LITTLE_ENDIAN)
# define __BYTE_ORDER __LITTLE_ENDIAN
#else
# error "Endianness is unknown"
#endif