| * 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. |
| extern int __mingw_has_sse (void); |
| The fegetexceptflag function stores an implementation-defined |
| representation of the exception flags indicated by the argument |
| excepts in the object pointed to by the argument flagp. */ |
| int fegetexceptflag (fexcept_t * flagp, int excepts) |
| __asm__ volatile ("fnstsw %0" : "=am" (_status)); |
| __asm__ volatile ("stmxcsr %0" : "=m" (_mxcsr)); |
| *flagp = (_mxcsr | _status) & excepts & FE_ALL_EXCEPT; |