| * 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. |
| #if defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__)) |
| /* Internal MinGW version of _control87_2 */ |
| int __mingw_control87_2( unsigned int newval, unsigned int mask, |
| unsigned int *x86_cw, unsigned int *sse2_cw ) |
| __mingw_setfp(x86_cw, mask, NULL, 0); |
| __mingw_setfp_sse(sse2_cw, mask, NULL, 0); |
| /* Internal MinGW version of _control87 */ |
| unsigned int __mingw_controlfp(unsigned int newval, unsigned int mask) |
| #if defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__)) |
| __mingw_control87_2( newval, mask, &flags, &sse2_cw ); |
| if ((flags ^ sse2_cw) & (_MCW_EM | _MCW_RC)) flags |= _EM_AMBIGUOUS; |
| __mingw_setfp(&flags, mask, NULL, 0); |