1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the mingw-w64 runtime package. 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package. 5 */ 6 7 void _fpreset (void); 8 _fpreset(void)9void _fpreset (void) 10 { 11 #if defined(_ARM_) || defined(__arm__) 12 __asm__ __volatile__ ( 13 "vmsr fpscr, %0\n\t" : : "r"(0 /* INITIAL_FPSCR */)); 14 #elif defined(_ARM64_) || defined(__aarch64__) 15 __asm__ __volatile__ ( 16 "msr fpcr, %0\n\t" : : "r"(0LL /* INITIAL_FPSCR */)); 17 #else 18 #ifdef __GNUC__ 19 __asm__ ("fninit"); 20 #else /* msvc: */ 21 __asm fninit; 22 #endif 23 #endif 24 } 25 26 #ifdef __GNUC__ 27 void __attribute__ ((alias ("_fpreset"))) fpreset(void); 28 #else fpreset(void)29void fpreset(void) { 30 _fpreset(); 31 } 32 #endif 33