Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1206 - trunk/Core/Math
- Date: Fri, 6 Oct 2006 09:09:14 -0600 (MDT)
Author: bigler
Date: Fri Oct 6 09:09:04 2006
New Revision: 1206
Modified:
trunk/Core/Math/SSEDefs.h
Log:
Added definitions for _mm_castps_si128 and _mm_castsi128_ps for older GCC
versions.
Modified: trunk/Core/Math/SSEDefs.h
==============================================================================
--- trunk/Core/Math/SSEDefs.h (original)
+++ trunk/Core/Math/SSEDefs.h Fri Oct 6 09:09:04 2006
@@ -84,6 +84,14 @@
#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).
+ static inline __m128i _mm_castps_si128(__m128 val) { return (__m128i)val;
}
+ static inline __m128 _mm_castsi128_ps(__m128i val) { return (__m128) val;
}
+#endif
+
static const MANTA_ALIGN(16) sse_t _mm_eps = _mm_set_ps1(1e-5);
static const MANTA_ALIGN(16) sse_t _mm_minus_eps = _mm_set_ps1(-1e-5);
static const MANTA_ALIGN(16) sse_t _mm_epsilon = _mm_set_ps1(1e-5);
- [MANTA] r1206 - trunk/Core/Math, bigler, 10/06/2006
Archive powered by MHonArc 2.6.16.