From 9ad4da91271d79b51979c4dce1e229d9f31546f8 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 20 Jun 2014 06:10:03 +0200 Subject: [PATCH] SSE2: Align CVector --HG-- branch : sse2 --- code/nel/include/nel/misc/vector.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/include/nel/misc/vector.h b/code/nel/include/nel/misc/vector.h index 46b8faa3d..ebf56c048 100644 --- a/code/nel/include/nel/misc/vector.h +++ b/code/nel/include/nel/misc/vector.h @@ -40,7 +40,11 @@ class CVectorPacked; class NL_ALIGN_SSE2 CVector { public: // Attributes. +#ifdef NL_HAS_SSE2 + union { struct { float x, y, z; }; __m128 mm; }; +#else float x,y,z; +#endif public: // const. /// Null vector (0,0,0).