|
From: <axl...@us...> - 2010-04-29 10:32:27
|
Revision: 713
http://hgengine.svn.sourceforge.net/hgengine/?rev=713&view=rev
Author: axlecrusher
Date: 2010-04-29 10:32:21 +0000 (Thu, 29 Apr 2010)
Log Message:
-----------
Float row can just be a bunch of floats.
We don't really need __m128 in SSE mode.
Modified Paths:
--------------
Mercury2/src/MercuryMath.h
Modified: Mercury2/src/MercuryMath.h
===================================================================
--- Mercury2/src/MercuryMath.h 2010-04-28 16:45:32 UTC (rev 712)
+++ Mercury2/src/MercuryMath.h 2010-04-29 10:32:21 UTC (rev 713)
@@ -22,6 +22,7 @@
#else
#define PREFETCH(a,sel) ; //prefetch a cache line (64 bytes)
#endif
+/*
VC_ALIGN(16) class FloatRow
{
public:
@@ -39,7 +40,10 @@
__m128 m_floats;
#endif
} CC_ALIGN(16);
+*/
+typedef VC_ALIGN(16) float FloatRow[4] CC_ALIGN(16);
+
#ifdef WIN32
#include <limits>
#define INFINITY (std::numeric_limits<float>::infinity())
@@ -113,7 +117,7 @@
//void Float2FloatRow(const float* f, FloatRow& r);
//void FloatRow2Float(const FloatRow& fr, float* f);
-const FloatRow gfrZero = { { 0.f, 0.f, 0.f, 0.f } };
+const FloatRow gfrZero = { 0.f, 0.f, 0.f, 0.f };
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|