From 24726083a438725ef1f4b2d60f6805c08fa11dff Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Sat, 1 Apr 2006 23:24:24 +0200 Subject: fpu-387.h: Use previously added SSE code in all cases, as it really is the right thing to do. * config/fpu-387.h: Use previously added SSE code in all cases, as it really is the right thing to do. From-SVN: r112610 --- libgfortran/config/fpu-387.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libgfortran/config') diff --git a/libgfortran/config/fpu-387.h b/libgfortran/config/fpu-387.h index 5e3dec2..5678ade 100644 --- a/libgfortran/config/fpu-387.h +++ b/libgfortran/config/fpu-387.h @@ -93,7 +93,6 @@ void set_fpu (void) /* SSE */ asm volatile ("stmxcsr %0" : "=m" (cw_sse)); cw_sse &= 0xFFFF0000; -#ifdef __APPLE__ cw_sse |= (_FPU_MASK_IM | _FPU_MASK_DM | _FPU_MASK_ZM | _FPU_MASK_OM | _FPU_MASK_UM | _FPU_MASK_PM ) << 7; if (options.fpe & GFC_FPE_INVALID) cw_sse &= ~(_FPU_MASK_IM << 7); @@ -103,14 +102,5 @@ void set_fpu (void) if (options.fpe & GFC_FPE_UNDERFLOW) cw_sse &= ~(_FPU_MASK_UM << 7); if (options.fpe & GFC_FPE_PRECISION) cw_sse &= ~(_FPU_MASK_PM << 7); asm volatile ("ldmxcsr %0" : : "m" (cw_sse)); -#else - if (options.fpe & GFC_FPE_INVALID) cw_sse |= 1 << 7; - if (options.fpe & GFC_FPE_DENORMAL) cw_sse |= 1 << 8; - if (options.fpe & GFC_FPE_ZERO) cw_sse |= 1 << 9; - if (options.fpe & GFC_FPE_OVERFLOW) cw_sse |= 1 << 10; - if (options.fpe & GFC_FPE_UNDERFLOW) cw_sse |= 1 << 11; - if (options.fpe & GFC_FPE_PRECISION) cw_sse |= 1 << 12; - asm volatile ("ldmxcsr %0" : : "m" (cw_sse)); -#endif } } -- cgit v1.1