replaced alignment to use __declspec(align(16)) class VecIdx, instead of aligning the members __m128 &ref __attribute__ ((aligned(16)));

This commit is contained in:
ejcoumans
2007-07-25 05:39:14 +00:00
parent 744f287935
commit 1a2a43d0ab

View File

@@ -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; }