| * This file has no copyright assigned and is placed in the Public Domain. |
| * This file is part of the mingw-w64 runtime package. |
| * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| int __mingw_has_sse (void); |
| The fegetenv function stores the current floating-point environment |
| in the object pointed to by envp. */ |
| int fegetenv (fenv_t * envp) |
| __asm__ __volatile__ ("fnstenv %0;": "=m" (*envp)); |
| /* fnstenv sets control word to non-stop for all exceptions, so we |
| need to reload our env to restore the original mask. */ |
| __asm__ __volatile__ ("fldenv %0" : : "m" (*envp)); |
| __asm__ __volatile__ ("stmxcsr %0" : "=m" (_mxcsr)); |
| envp->__unused0 = (((unsigned int) _mxcsr) >> 16); |
| envp->__unused1 = (((unsigned int) _mxcsr) & 0xffff); |