summaryrefslogtreecommitdiff
path: root/libm/sh/feholdexcpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/sh/feholdexcpt.c')
-rw-r--r--libm/sh/feholdexcpt.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/libm/sh/feholdexcpt.c b/libm/sh/feholdexcpt.c
deleted file mode 100644
index 70b51e8dd..000000000
--- a/libm/sh/feholdexcpt.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- *
- * Copyright (c) 2007 STMicroelectronics Ltd
- * Filippo Arcidiacono (filippo.arcidiacono@st.com)
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- *
- * Taken from glibc 2.6
- *
- */
-
-#include <fenv.h>
-#include <fpu_control.h>
-
-int
-feholdexcept (fenv_t *envp)
-{
- unsigned long int temp;
-
- /* Store the environment. */
- _FPU_GETCW (temp);
- envp->__fpscr = temp;
-
- /* Now set all exceptions to non-stop. */
- temp &= ~FE_ALL_EXCEPT;
- _FPU_SETCW (temp);
-
- return 1;
-}