1 /* 2 * Copyright (C) 2016 Andes Technology, Inc. 3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. 4 */ 5 6 #ifndef _ENDIAN_H 7 # error "Never use <bits/endian.h> directly; include <endian.h> instead." 8 #endif /* _ENDIAN_H */ 9 10 #ifdef __NDS32_EB__ 11 #define __BYTE_ORDER __BIG_ENDIAN 12 #else /* ! __NDS32_EB__ */ 13 #define __BYTE_ORDER __LITTLE_ENDIAN 14 #endif /* ! __NDS32_EB__ */ 15 16 #define __FLOAT_WORD_ORDER __BYTE_ORDER 17