summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/fenv/fenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/fenv/fenv.c')
-rw-r--r--libc-top-half/musl/src/fenv/fenv.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/fenv/fenv.c b/libc-top-half/musl/src/fenv/fenv.c
new file mode 100644
index 0000000..5588dad
--- /dev/null
+++ b/libc-top-half/musl/src/fenv/fenv.c
@@ -0,0 +1,38 @@
+#include <fenv.h>
+
+/* Dummy functions for archs lacking fenv implementation */
+
+int feclearexcept(int mask)
+{
+ return 0;
+}
+
+int feraiseexcept(int mask)
+{
+ return 0;
+}
+
+int fetestexcept(int mask)
+{
+ return 0;
+}
+
+int fegetround(void)
+{
+ return FE_TONEAREST;
+}
+
+int __fesetround(int r)
+{
+ return 0;
+}
+
+int fegetenv(fenv_t *envp)
+{
+ return 0;
+}
+
+int fesetenv(const fenv_t *envp)
+{
+ return 0;
+}