diff options
author | Hau Hsu <hau.hsu@sifive.com> | 2023-02-22 04:59:07 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-02-22 14:20:57 +0300 |
commit | 97d483c2f81c0865bead701f4d2824a21fae4938 (patch) | |
tree | f81be16d1f533bde2a1bc0d7116ebe8175d01005 /newlib/Makefile.am | |
parent | 2229f42400b992669a99cba9b42b600b0ba01b7f (diff) |
RISC-V: Use the new libm code if possible
Set __OBSOLETE_MATH_DEFAULT to 0 if 'd' extension is supported (i.e.
__riscv_flen == 64).
Base on the comment for __OBSOLETE_MATH_DEFAULT:
> ... it assumes that the toolchain has ISO C99 support (hexfloat
> literals, standard fenv semantics), the target has IEEE-754 conforming
> binary32 float and binary64 double (not mixed endian) representation,
> standard SNaN representation, double and single precision arithmetics
> has similar latency and it has no legacy SVID matherr support, only
> POSIX errno and fenv exception based error handling.
Signed-off-by: Hau Hsu <hau.hsu@sifive.com>
Diffstat (limited to 'newlib/Makefile.am')
0 files changed, 0 insertions, 0 deletions