From 1a2a43d0ab46b4e8718e66cd332ad53235afb55e Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Wed, 25 Jul 2007 05:39:14 +0000 Subject: [PATCH] replaced alignment to use __declspec(align(16)) class VecIdx, instead of aligning the members __m128 &ref __attribute__ ((aligned(16))); --- .../include/vectormath/SSE/cpp/vecidx_aos.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Extras/vectormathlibrary/include/vectormath/SSE/cpp/vecidx_aos.h b/Extras/vectormathlibrary/include/vectormath/SSE/cpp/vecidx_aos.h index d4ce0b82c..c5c6eb908 100644 --- a/Extras/vectormathlibrary/include/vectormath/SSE/cpp/vecidx_aos.h +++ b/Extras/vectormathlibrary/include/vectormath/SSE/cpp/vecidx_aos.h @@ -30,6 +30,7 @@ #ifndef _VECTORMATH_VECIDX_AOS_H #define _VECTORMATH_VECIDX_AOS_H + #include "floatInVec.h" namespace Vectormath { @@ -41,11 +42,11 @@ namespace Aos { // subscripting operator. // -class VecIdx +__declspec(align(16)) class VecIdx { private: - __m128 &ref __attribute__ ((aligned(16))); - int i __attribute__ ((aligned(16))); + __m128 &ref; + int i; public: inline VecIdx( __m128& vec, int idx ): ref(vec) { i = idx; }