GSdx: sse2/ssse3 build fixed

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@730 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 2009-03-10 04:37:41 +00:00
parent 22a0eeb3e3
commit d541a8da45
3 changed files with 8 additions and 6 deletions

View File

@ -24,6 +24,8 @@
const GSVector4 GSVector4::m_ps0123(0.0f, 1.0f, 2.0f, 3.0f);
const GSVector4 GSVector4::m_ps4567(4.0f, 5.0f, 6.0f, 7.0f);
const GSVector4 GSVector4::m_x3f800000(_mm_castsi128_ps(_mm_set1_epi32(0x3f800000)));
const GSVector4 GSVector4::m_x4b000000(_mm_castsi128_ps(_mm_set1_epi32(0x4b000000)));
void GSVector4::operator = (const GSVector4i& v)
{

View File

@ -2093,6 +2093,9 @@ public:
static const GSVector4 m_ps0123;
static const GSVector4 m_ps4567;
static const GSVector4 m_x3f800000;
static const GSVector4 m_x4b000000;
GSVector4()
{
}
@ -2225,18 +2228,18 @@ public:
GSVector4 a = *this;
GSVector4 b = (a & GSVector4(ps_80000000)) | GSVector4(ps_4b000000);
GSVector4 b = (a & cast(GSVector4i::x80000000())) | m_x4b000000;
b = a + b - b;
if((mode & 7) == (NegInf & 7))
{
return b - ((a < b) & GSVector4(ps_3f800000));
return b - ((a < b) & m_x3f800000);
}
if((mode & 7) == (PosInf & 7))
{
return b + ((a > b) & GSVector4(ps_3f800000));
return b + ((a > b) & m_x3f800000);
}
ASSERT((mode & 7) == (NearestInt & 7)); // other modes aren't implemented

View File

@ -45,9 +45,6 @@
#endif
const __m128 ps_3f800000 = _mm_castsi128_ps(_mm_set1_epi32(0x3f800000));
const __m128 ps_4b000000 = _mm_castsi128_ps(_mm_set1_epi32(0x4b000000));
#define _MM_TRANSPOSE4_SI128(row0, row1, row2, row3) \
{ \
__m128 tmp0 = _mm_shuffle_ps(_mm_castsi128_ps(row0), _mm_castsi128_ps(row1), 0x44); \