summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-02-27 23:18:42 -0500
committerRich Felker <dalias@aerifal.cx>2014-02-27 23:18:42 -0500
commitb1683a1d6a4391ffef6ce12be9aa172d0f4f59bc (patch)
tree52eb1e9245808f14580e892073856b78e606dc13 /arch/sh
parent5c27c4458f11adaba261353f84bcde4f79f0bdbd (diff)
downloadmusl-b1683a1d6a4391ffef6ce12be9aa172d0f4f59bc.tar.gz
add nofpu subarchs to the sh arch, and properly detect compiler's fpu config
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/bits/fenv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/bits/fenv.h b/arch/sh/bits/fenv.h
index f454a15d..7f1b8b66 100644
--- a/arch/sh/bits/fenv.h
+++ b/arch/sh/bits/fenv.h
@@ -1,3 +1,10 @@
+#ifndef __SH_FPU_ANY__
+
+#define FE_ALL_EXCEPT 0
+#define FE_TONEAREST 0
+
+#else
+
#define FE_TONEAREST 0
#define FE_TOWARDZERO 1
@@ -8,6 +15,8 @@
#define FE_INVALID 0x40
#define FE_ALL_EXCEPT 0x7c
+#endif
+
typedef unsigned long fexcept_t;
typedef struct {