diff options
author | Eshan dhawan <eshandhawan51@gmail.com> | 2021-02-04 01:04:06 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2021-02-05 12:32:16 +0300 |
commit | 55a6e49a0813232bbca3b3e97bb03c22c5857639 (patch) | |
tree | 1c576619c3ddc07c7569f4e253bb1095bfdf3535 /newlib/libm | |
parent | 6aa0ab1c5ddeef7a970127c22a1c33a01d801e94 (diff) |
Removed Soft float from MIPS
This Patch removes Soft Float code from MIPS.
Instead It adds the soft float code from RISCV
The code came from FreeBSD and assumes the FreeBSD softfp
implementation not the one with GCC. That was an overlooked and
fixed in the other fenv code already.
Signed-off-by: Eshan Dhawan <eshandhawan51@gmail.com>
Diffstat (limited to 'newlib/libm')
-rw-r--r-- | newlib/libm/machine/mips/fenv.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/newlib/libm/machine/mips/fenv.c b/newlib/libm/machine/mips/fenv.c index 6e4bb8f33..e2179eb20 100644 --- a/newlib/libm/machine/mips/fenv.c +++ b/newlib/libm/machine/mips/fenv.c @@ -44,20 +44,10 @@ * this as a default environment. */ - #ifdef __mips_soft_float -#define __set_env(env, flags, mask, rnd) env = ((flags) \ - | (mask)<<_FPUSW_SHIFT \ - | (rnd) << 24) -#define __env_flags(env) ((env) & FE_ALL_EXCEPT) -#define __env_mask(env) (((env) >> _FPUSW_SHIFT) \ - & FE_ALL_EXCEPT) -#define __env_round(env) (((env) >> 24) & _ROUND_MASK) #include <machine/fenv-softfloat.h> #endif - - extern inline int feclearexcept(int excepts); extern inline int fegetexceptflag(fexcept_t *flagp, int excepts); extern inline int fesetexceptflag(const fexcept_t *flagp, int excepts); |