path: root/src/fenv/feholdexcept.c
diff options
authorRich Felker <>2011-06-12 15:58:15 -0400
committerRich Felker <>2011-06-12 15:58:15 -0400
commitb09b78905b09016becda8df81a43e11bebd88208 (patch)
tree1242583c88f60a96f92f321b43d17c4bb358afb5 /src/fenv/feholdexcept.c
parent2afebbbcd16e8bfc5e008a40b2faf3bd8cf14e88 (diff)
floating point environment, untested
at present the i386 code does not support sse floating point, which is not part of the standard i386 abi. while it may be desirable to support it later, doing so will reduce performance and require some tricks to probe if sse support is present. this first commit is i386-only, but it should be trivial to port the asm to x86_64.
Diffstat (limited to 'src/fenv/feholdexcept.c')
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fenv/feholdexcept.c b/src/fenv/feholdexcept.c
new file mode 100644
index 00000000..4c6da239
--- /dev/null
+++ b/src/fenv/feholdexcept.c
@@ -0,0 +1,7 @@
+#include <fenv.h>
+int feholdexcept(fenv_t *envp)
+ fegetenv(envp);
+ return 0;