Clang support for gnu_inline attribute
[uclibc-ng.git] / libc / sysdeps / linux / nds32 / bits / endian.h
blob989d752d43686cd02e8cf773de90e704da3a816f
1 /*
2 * Copyright (C) 2016 Andes Technology, Inc.
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
4 */
6 #ifndef _ENDIAN_H
7 # error "Never use <bits/endian.h> directly; include <endian.h> instead."
8 #endif /* _ENDIAN_H */
10 #ifdef __NDS32_EB__
11 #define __BYTE_ORDER __BIG_ENDIAN
12 #else /* ! __NDS32_EB__ */
13 #define __BYTE_ORDER __LITTLE_ENDIAN
14 #endif /* ! __NDS32_EB__ */
16 #define __FLOAT_WORD_ORDER __BYTE_ORDER