Commit 61221141 by Uros Bizjak

crtfastmath.c: Compile only for !_SOFT_FLOAT.

	* config/i386/crtfastmath.c: Compile only for !_SOFT_FLOAT.
	* config/i386/crtprec.c: Ditto.

From-SVN: r204327
parent 856d2d6c
2013-11-03 Uros Bizjak <ubizjak@gmail.com>
* config/i386/crtfastmath.c: Compile only for !_SOFT_FLOAT.
* config/i386/crtprec.c: Ditto.
2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com> 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
Shiva Chen <shiva0217@gmail.com> Shiva Chen <shiva0217@gmail.com>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef _SOFT_FLOAT
#define MXCSR_DAZ (1 << 6) /* Enable denormals are zero mode */ #define MXCSR_DAZ (1 << 6) /* Enable denormals are zero mode */
#define MXCSR_FTZ (1 << 15) /* Enable flush to zero mode */ #define MXCSR_FTZ (1 << 15) /* Enable flush to zero mode */
...@@ -134,3 +135,4 @@ set_fast_math (void) ...@@ -134,3 +135,4 @@ set_fast_math (void)
__builtin_ia32_ldmxcsr (mxcsr); __builtin_ia32_ldmxcsr (mxcsr);
#endif #endif
} }
#endif
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef _SOFT_FLOAT
#if __PREC == 32 #if __PREC == 32
#define X87CW (0 << 8) /* Single precision (24 bits) */ #define X87CW (0 << 8) /* Single precision (24 bits) */
#elif __PREC == 64 #elif __PREC == 64
...@@ -45,3 +46,4 @@ set_precision (void) ...@@ -45,3 +46,4 @@ set_precision (void)
asm volatile ("fldcw\t%0" : : "m" (cwd)); asm volatile ("fldcw\t%0" : : "m" (cwd));
} }
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment