about summary refs log tree commit diff
path: root/sysdeps/sh/sh4/bits/endian.h
blob: 1fef1ff938f023d33ccd8697222988ab70d31d4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* SH is bi-endian but with a big-endian FPU.  */

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

#ifdef __LITTLE_ENDIAN__
#define __BYTE_ORDER __LITTLE_ENDIAN
#define __FLOAT_WORD_ORDER __LITTLE_ENDIAN
#else
#define __BYTE_ORDER __BIG_ENDIAN
#define __FLOAT_WORD_ORDER __BIG_ENDIAN
#endif