Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1254 - trunk/Core/Math


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1254 - trunk/Core/Math
  • Date: Fri, 8 Dec 2006 15:29:04 -0700 (MST)

Author: bigler
Date: Fri Dec  8 15:29:04 2006
New Revision: 1254

Modified:
   trunk/Core/Math/SSEDefs.cc
Log:

For the intel compiler the type of __m128 and __m128i are the same
(long long, I believe), so the compiler chokes trying to make more
than one version of the same function.


Modified: trunk/Core/Math/SSEDefs.cc
==============================================================================
--- trunk/Core/Math/SSEDefs.cc  (original)
+++ trunk/Core/Math/SSEDefs.cc  Fri Dec  8 15:29:04 2006
@@ -11,6 +11,10 @@
     return os;
   }
 
+#if !defined(__INTEL_COMPILER)
+  // On intel compilers, it appears that the __m128 and __m128i are
+  // the same type in terms of this operator, so we should only make a
+  // single version.
   std::ostream& operator<<(std::ostream& os, __m128i t)
   {
     MANTA_ALIGN(16) int i[4];
@@ -18,4 +22,5 @@
     os << i[0] << ", " << i[1] << ", " << i[2] << ", " << i[3];
     return os;
   }
+#endif
 }




  • [MANTA] r1254 - trunk/Core/Math, bigler, 12/08/2006

Archive powered by MHonArc 2.6.16.

Top of page