Only use rfs and wfs if ARM_HARD_FLOAT is defined, and use stubs if it is not,

in order to unbreak arm make world. The right way to do it with soft floats
will be figured out later.
Discussed with:	das
This commit is contained in:
Olivier Houchard 2004-08-05 14:07:24 +00:00
parent db332970e7
commit 60b22cf1c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133174

View File

@ -53,8 +53,13 @@ extern const fenv_t __fe_dfl_env;
#define _FPUSW_SHIFT 16
#define _ENABLE_MASK (FE_ALL_EXCEPT << _FPUSW_SHIFT)
#define __rfs(__fpsr) __asm("rfs %0" : "=m" (*(__fpsr)))
#define __wfs(__fpsr) __asm __volatile("wfs %0" : : "m" (__fpsr))
#ifdef ARM_HARD_FLOAT
#define __rfs(__fpsr) __asm("rfs %0" : "=r" (*(__fpsr)))
#define __wfs(__fpsr) __asm __volatile("wfs %0" : : "r" (__fpsr))
#else
#define __rfs(__fpsr)
#define __wfs(__fpsr)
#endif
static __inline int
feclearexcept(int __excepts)