diff options
Diffstat (limited to 'libc/sysdeps/linux/nds32/bits/endian.h')
-rw-r--r-- | libc/sysdeps/linux/nds32/bits/endian.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/nds32/bits/endian.h b/libc/sysdeps/linux/nds32/bits/endian.h new file mode 100644 index 000000000..989d752d4 --- /dev/null +++ b/libc/sysdeps/linux/nds32/bits/endian.h @@ -0,0 +1,16 @@ +/* + * Copyright (C) 2016 Andes Technology, Inc. + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#ifndef _ENDIAN_H +# error "Never use <bits/endian.h> directly; include <endian.h> instead." +#endif /* _ENDIAN_H */ + +#ifdef __NDS32_EB__ +#define __BYTE_ORDER __BIG_ENDIAN +#else /* ! __NDS32_EB__ */ +#define __BYTE_ORDER __LITTLE_ENDIAN +#endif /* ! __NDS32_EB__ */ + +#define __FLOAT_WORD_ORDER __BYTE_ORDER |