GSdx: the usual fixes for gcc.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4424 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 2011-03-12 23:15:23 +00:00
parent 2471c483bc
commit 2cfe05d290
1 changed files with 20 additions and 20 deletions

View File

@ -3174,11 +3174,11 @@ public:
{
return GSVector8i(
aligned ? _mm_load_si128((__m128i*)p + 0) : _mm_loadu_si128((__m128i*)p + 0),
aligned ? _mm_load_si128((__m128i*)p + 1) : _mm_loadu_si128((__m128i*)p + 1),
aligned ? _mm_load_si128((__m128i*)p + 1) : _mm_loadu_si128((__m128i*)p + 1)
);
}
template<bool aligned> __forceinline static void store(void* p, const GSVector4i& v)
template<bool aligned> __forceinline static void store(void* p, const GSVector8i& v)
{
if(aligned)
{
@ -3674,7 +3674,7 @@ public:
template<int mode> __forceinline GSVector8 round() const
{
return GSVector8(_mm_round_ps(m[0], mode), _mm_round_ps(m[1], mode));
return GSVector8(GSVector4(m[0]).round<mode>(), GSVector4(m[1]).round<mode>());
}
// TODO
@ -3696,13 +3696,13 @@ public:
return GSVector8(_mm_blend_ps(m[0], a.m[0], mask & 0x0f), _mm_blend_ps(m[1], a.m[1], (mask >> 4) & 0x0f));
}
#endif
__forceinline GSVector8 blend32(const GSVector8& a, const GSVector8& mask) const
{
return GSVector8(_mm_blendv_ps(m[0], a.m[0], mask.m[0]), _mm_blendv_ps(m[1], a.m[1], mask.m[1]));
}
#endif
__forceinline GSVector8 upl(const GSVector8& a) const
{
return GSVector8(_mm_unpacklo_ps(m[0], a.m[0]), _mm_unpacklo_ps(m[1], a.m[1]));
@ -3800,7 +3800,7 @@ public:
{
return GSVector8(
aligned ? _mm_load_ps((const float*)p + 0) : _mm_loadu_ps((const float*)p + 0),
aligned ? _mm_load_ps((const float*)p + 4) : _mm_loadu_ps((const float*)p + 4),
aligned ? _mm_load_ps((const float*)p + 4) : _mm_loadu_ps((const float*)p + 4)
);
}