build fix

This commit is contained in:
degasus 2013-02-21 13:00:19 +01:00
parent 76e6085e31
commit 4b4dce1bd9
2 changed files with 6 additions and 6 deletions

View File

@ -84,7 +84,7 @@ float PosScale(float val)
{ return val; }
template <typename T, int N>
LOADERDECL void Pos_ReadDirect()
void LOADERDECL Pos_ReadDirect()
{
static_assert(N <= 3, "N > 3 is not sane!");
@ -100,7 +100,7 @@ LOADERDECL void Pos_ReadDirect()
}
template <typename I, typename T, int N>
LOADERDECL void Pos_ReadIndex()
void LOADERDECL Pos_ReadIndex()
{
static_assert(!std::numeric_limits<I>::is_signed, "Only unsigned I is sane!");
static_assert(N <= 3, "N > 3 is not sane!");
@ -127,12 +127,12 @@ static const __m128i kMaskSwap32_3 = _mm_set_epi32(0xFFFFFFFFL, 0x08090A0BL, 0x0
static const __m128i kMaskSwap32_2 = _mm_set_epi32(0xFFFFFFFFL, 0xFFFFFFFFL, 0x04050607L, 0x00010203L);
template <typename I, bool three>
LOADERDECL void Pos_ReadIndex_Float_SSSE3()
void LOADERDECL Pos_ReadIndex_Float_SSSE3()
{
auto const index = DataRead<I>();
if (index < std::numeric_limits<I>::max())
{
const u32* pData = (const u32 *)(cached_arraybases[ARRAY_POSITION] + (Index * arraystrides[ARRAY_POSITION]));
const u32* pData = (const u32 *)(cached_arraybases[ARRAY_POSITION] + (index * arraystrides[ARRAY_POSITION]));
GC_ALIGNED128(const __m128i a = _mm_loadu_si128((__m128i*)pData));
GC_ALIGNED128(__m128i b = _mm_shuffle_epi8(a, three ? kMaskSwap32_3 : kMaskSwap32_2));
_mm_storeu_si128((__m128i*)VertexManager::s_pCurBufferPointer, b);

View File

@ -112,7 +112,7 @@ void LOADERDECL TexCoord_ReadIndex16_Short2_SSE4()
const __m128 e = _mm_load1_ps(&tcScale[tcIndex]);
const __m128 f = _mm_mul_ps(d, e);
_mm_storeu_ps((float*)VertexManager::s_pCurBufferPointer, f);
LOG_TEX2();
LOG_TEX<2>();
VertexManager::s_pCurBufferPointer += 8;
tcIndex++;
}
@ -128,7 +128,7 @@ void LOADERDECL TexCoord_ReadIndex16_Float2_SSSE3()
GC_ALIGNED128(const __m128i a = _mm_loadl_epi64((__m128i*)pData));
GC_ALIGNED128(const __m128i b = _mm_shuffle_epi8(a, kMaskSwap32));
_mm_storel_epi64((__m128i*)VertexManager::s_pCurBufferPointer, b);
LOG_TEX2();
LOG_TEX<2>();
VertexManager::s_pCurBufferPointer += 8;
tcIndex++;
}