replaced alignment to use __declspec(align(16)) class VecIdx, instead of aligning the members __m128 &ref __attribute__ ((aligned(16)));
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
#ifndef _VECTORMATH_VECIDX_AOS_H
|
#ifndef _VECTORMATH_VECIDX_AOS_H
|
||||||
#define _VECTORMATH_VECIDX_AOS_H
|
#define _VECTORMATH_VECIDX_AOS_H
|
||||||
|
|
||||||
|
|
||||||
#include "floatInVec.h"
|
#include "floatInVec.h"
|
||||||
|
|
||||||
namespace Vectormath {
|
namespace Vectormath {
|
||||||
@@ -41,11 +42,11 @@ namespace Aos {
|
|||||||
// subscripting operator.
|
// subscripting operator.
|
||||||
//
|
//
|
||||||
|
|
||||||
class VecIdx
|
__declspec(align(16)) class VecIdx
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
__m128 &ref __attribute__ ((aligned(16)));
|
__m128 &ref;
|
||||||
int i __attribute__ ((aligned(16)));
|
int i;
|
||||||
public:
|
public:
|
||||||
inline VecIdx( __m128& vec, int idx ): ref(vec) { i = idx; }
|
inline VecIdx( __m128& vec, int idx ): ref(vec) { i = idx; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user