Browse Source

fix condition for riscv{32,64} non-stup fenv

whether fenv is supported depends on the ABI, not whether the target
cpu ISA level has floating point support.
master
Rich Felker 2 months ago
parent
commit
3df932bc33
  1. 2
      src/fenv/riscv32/fenv-sf.c
  2. 2
      src/fenv/riscv32/fenv.S
  3. 2
      src/fenv/riscv64/fenv-sf.c
  4. 2
      src/fenv/riscv64/fenv.S

2
src/fenv/riscv32/fenv-sf.c

@ -1,3 +1,3 @@
#ifndef __riscv_flen
#ifdef __riscv_float_abi_soft
#include "../fenv.c"
#endif

2
src/fenv/riscv32/fenv.S

@ -1,4 +1,4 @@
#ifdef __riscv_flen
#ifndef __riscv_float_abi_soft
.global feclearexcept
.type feclearexcept, %function

2
src/fenv/riscv64/fenv-sf.c

@ -1,3 +1,3 @@
#ifndef __riscv_flen
#ifdef __riscv_float_abi_soft
#include "../fenv.c"
#endif

2
src/fenv/riscv64/fenv.S

@ -1,4 +1,4 @@
#ifdef __riscv_flen
#ifndef __riscv_float_abi_soft
.global feclearexcept
.type feclearexcept, %function

Loading…
Cancel
Save