Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1213 - trunk/Core/Math


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1213 - trunk/Core/Math
  • Date: Tue, 10 Oct 2006 02:02:29 -0600 (MDT)

Author: abe
Date: Tue Oct 10 02:02:29 2006
New Revision: 1213

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

Casting intrinsic is defined on the intel compiler (not on older
versions of gcc apparently). 

M    SSEDefs.h


Modified: trunk/Core/Math/SSEDefs.h
==============================================================================
--- trunk/Core/Math/SSEDefs.h   (original)
+++ trunk/Core/Math/SSEDefs.h   Tue Oct 10 02:02:29 2006
@@ -85,9 +85,8 @@
 #endif
 
   //#ifdef __CYGWIN__
-#if __GNUC__ < 4 // __GNUC_MINOR__
-  // These functions don't seem to be around before gcc 4.0 (maybe 3.4
-  // has them, I'll have to double check on that later).
+#if __GNUC__ < 4 && !defined(__INTEL_COMPILER)
+  // Intel casting intrinsics.
   static inline __m128i _mm_castps_si128(__m128  val) { return (__m128i)val; 
}
   static inline __m128  _mm_castsi128_ps(__m128i val) { return (__m128) val; 
}
 #endif




  • [MANTA] r1213 - trunk/Core/Math, abe, 10/10/2006

Archive powered by MHonArc 2.6.16.

Top of page