OSDN Git Service

516c86c4aaad90613f33c9485c10a97768eedb67
[mingw/mingw-org-wsl.git] / mingwrt / CRT_fp10.c
1 /*
2  * CRT_FP10.c
3  *
4  * This defines _fpreset as asm ("fnint"). Calls to _fpreset
5  * will set default floating point precesion to 64-bit mantissa
6  * at app startup.
7  *
8  * Linking in CRT_FP10.o before libmingw.a will override the definition
9  * set in CRT_FP8.o.
10  */
11
12 /* Override library  _fpreset() with asm fninit */
13 void _fpreset (void)
14   { __asm__ ( "fninit" ) ;}
15
16 #if defined(__PCC__)
17 void _Pragma("alias _fpreset") fpreset(void);
18 #else
19 void __attribute__ ((alias ("_fpreset"))) fpreset(void);
20 #endif