aboutsummaryrefslogtreecommitdiff
path: root/src/fenv/sh
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-01-20 02:07:59 +0000
committerRich Felker <dalias@aerifal.cx>2016-01-20 02:07:59 +0000
commitaf21a82ccc8687aa16e85def7db95efeae4cf72e (patch)
tree6b34bd5b507fe4076ce3c3f4556cad3d860a2a95 /src/fenv/sh
parent4b9a08f29303661e9680fc1ee1569daa25df7d50 (diff)
downloadmusl-af21a82ccc8687aa16e85def7db95efeae4cf72e.zip
musl-af21a82ccc8687aa16e85def7db95efeae4cf72e.tar.gz
musl-af21a82ccc8687aa16e85def7db95efeae4cf72e.tar.bz2
switch arm, sh, and mips fenv asm from .sub system to .S files
Diffstat (limited to 'src/fenv/sh')
-rw-r--r--src/fenv/sh/fenv-nofpu.c3
-rw-r--r--src/fenv/sh/fenv.S (renamed from src/fenv/sh/fenv.s)4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/fenv/sh/fenv-nofpu.c b/src/fenv/sh/fenv-nofpu.c
new file mode 100644
index 0000000..b2495a6
--- /dev/null
+++ b/src/fenv/sh/fenv-nofpu.c
@@ -0,0 +1,3 @@
+#if !__SH_FPU_ANY__ && !__SH4__
+#include "../fenv.c"
+#endif
diff --git a/src/fenv/sh/fenv.s b/src/fenv/sh/fenv.S
index 7f5c627..cd47b5b 100644
--- a/src/fenv/sh/fenv.s
+++ b/src/fenv/sh/fenv.S
@@ -1,3 +1,5 @@
+#if __SH_FPU_ANY__ || __SH4__
+
.global fegetround
.type fegetround, @function
fegetround:
@@ -72,3 +74,5 @@ fesetenv:
2: lds r0, fpscr
rts
mov #0, r0
+
+#endif