Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/mingwex/fetestexcept.c')
-rw-r--r--winsup/mingw/mingwex/fetestexcept.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/winsup/mingw/mingwex/fetestexcept.c b/winsup/mingw/mingwex/fetestexcept.c
deleted file mode 100644
index 062d585eb..000000000
--- a/winsup/mingw/mingwex/fetestexcept.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <fenv.h>
-#include "cpu_features.h"
-/* 7.6.2.5
- The fetestexcept function determines which of a specified subset of
- the exception flags are currently set. The excepts argument
- specifies the exception flags to be queried.
- The fetestexcept function returns the value of the bitwise OR of the
- exception macros corresponding to the currently set exceptions
- included in excepts. */
-
-int fetestexcept (int excepts)
-{
-
- unsigned int _res;
- __asm__ ("fnstsw %%ax" : "=a" (_res));
-
-
- /* If SSE supported, return the union of the FPU and SSE flags. */
- if (__HAS_SSE)
- {
- unsigned int _csr;
- __asm__ volatile("stmxcsr %0" : "=m" (_csr));
- _res |= _csr;
- }
-
- return (_res & excepts & FE_ALL_EXCEPT);
-}