From: <daw...@us...> - 2014-05-13 22:58:47
|
Revision: 6630 http://sourceforge.net/p/mingw-w64/code/6630 Author: dawncrow Date: 2014-05-13 22:58:40 +0000 (Tue, 13 May 2014) Log Message: ----------- CRT_fp10: Add ARM implementation Modified Paths: -------------- trunk/mingw-w64-crt/crt/CRT_fp10.c Modified: trunk/mingw-w64-crt/crt/CRT_fp10.c =================================================================== --- trunk/mingw-w64-crt/crt/CRT_fp10.c 2014-05-13 22:56:56 UTC (rev 6629) +++ trunk/mingw-w64-crt/crt/CRT_fp10.c 2014-05-13 22:58:40 UTC (rev 6630) @@ -8,11 +8,17 @@ void _fpreset (void) { +#if defined(_ARM_) || defined(__arm__) + __asm__ __volatile__ ( + "mov r0, #0x00\n\t" /* INITIAL_FPSCR */ + "vmsr fpscr, r0\n\t"); +#else #ifdef __GNUC__ __asm__ ("fninit"); #else /* msvc: */ __asm fninit; #endif +#endif } #ifdef __GNUC__ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |