Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10755
Modified Files: Tag: devel_0_37 s_main.c Log Message: fixed DAZ / FTZ
Index: s_main.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_main.c,v retrieving revision 1.1.1.4.2.16 retrieving revision 1.1.1.4.2.17 diff -C2 -d -r1.1.1.4.2.16 -r1.1.1.4.2.17 *** s_main.c 20 Sep 2004 13:42:58 -0000 1.1.1.4.2.16 --- s_main.c 20 Sep 2004 16:44:03 -0000 1.1.1.4.2.17 *************** *** 306,317 **** #endif /* THREDED_SF */
/* tb: try to set ftz and daz */ ! #if defined(_MM_FLUSH_ZERO_ON) && defined(_MM_MASK_UNDERFLOW) _mm_setcsr(_MM_FLUSH_ZERO_ON | _MM_MASK_UNDERFLOW | _mm_getcsr()); - #endif - - #if defined(_MM_DENORM_ZERO_ON) _mm_setcsr(_MM_DENORM_ZERO_ON | _mm_getcsr()); ! #endif
/* run scheduler until it quits */ --- 306,317 ---- #endif /* THREDED_SF */
+ /* tb: try to set ftz and daz */ ! #ifdef DAZ ! #include <xmmintrin.h> ! #define _MM_DENORM_ZERO_ON 0x0040 _mm_setcsr(_MM_FLUSH_ZERO_ON | _MM_MASK_UNDERFLOW | _mm_getcsr()); _mm_setcsr(_MM_DENORM_ZERO_ON | _mm_getcsr()); ! #endif /* DAZ */
/* run scheduler until it quits */