xf.li | bfc6e71 | 2025-02-07 01:54:34 -0800 | [diff] [blame^] | 1 | /* The Nios II architecture has selectable endianness. */ |
2 | |||||
3 | #ifndef _ENDIAN_H | ||||
4 | # error "Never use <bits/endian.h> directly; include <endian.h> instead." | ||||
5 | #endif | ||||
6 | |||||
7 | #ifdef __nios2_big_endian__ | ||||
8 | # define __BYTE_ORDER __BIG_ENDIAN | ||||
9 | #endif | ||||
10 | #ifdef __nios2_little_endian__ | ||||
11 | # define __BYTE_ORDER __LITTLE_ENDIAN | ||||
12 | #endif |