Text archives Help
- From: sparker@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1044 - trunk/Engine/Control
- Date: Thu, 4 May 2006 20:46:01 -0600 (MDT)
Author: sparker
Date: Thu May 4 20:46:01 2006
New Revision: 1044
Modified:
trunk/Engine/Control/RTRT.cc
Log:
Clean up a little (use named constants instead of magic numbers)
Modified: trunk/Engine/Control/RTRT.cc
==============================================================================
--- trunk/Engine/Control/RTRT.cc (original)
+++ trunk/Engine/Control/RTRT.cc Thu May 4 20:46:01 2006
@@ -259,9 +259,14 @@
void RTRT::internalRenderLoop(int proc, bool lateComerFlag)
{
#ifdef MANTA_SSE
+
+#ifndef _MM_DENORM_ZERO_ON
+#define _MM_DENORM_ZERO_ON 0x0040
+#endif
+
// Disables denormal handling and set flush to zero
int oldMXCSR = _mm_getcsr(); //read the old MXCSR setting
- int newMXCSR = oldMXCSR | 0x8040; // set DAZ and FZ bits
+ int newMXCSR = oldMXCSR | _MM_FLUSH_ZERO_ON | _MM_DENORM_ZERO_ON; // set
DAZ and FZ bits
_mm_setcsr( newMXCSR ); //write the new MXCSR setting to the MXCSR
#endif
- [MANTA] r1044 - trunk/Engine/Control, sparker, 05/04/2006
Archive powered by MHonArc 2.6.16.