Set __IEEE_BIG_ENDIAN for big endian RISC-V
This commit is contained in:
parent
117ddd9dd0
commit
1a6fd3f05f
|
@ -199,7 +199,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __riscv
|
#ifdef __riscv
|
||||||
|
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
||||||
|
#define __IEEE_BIG_ENDIAN
|
||||||
|
#else
|
||||||
#define __IEEE_LITTLE_ENDIAN
|
#define __IEEE_LITTLE_ENDIAN
|
||||||
|
#endif
|
||||||
#ifdef __riscv_flen
|
#ifdef __riscv_flen
|
||||||
# define _SUPPORTS_ERREXCEPT
|
# define _SUPPORTS_ERREXCEPT
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue