summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-01-12 12:22:10 +0100
committerTillmann Karras <tilkax@gmail.com>2015-01-18 12:59:33 +0100
commit6a26771cd5bd203efaa23c0e555ea2dfc7baa7c1 (patch)
treeedd6af6aa112b5fca116d468523786a0f8a14882 /Source/Core/VideoCommon/VertexLoader_Normal.cpp
parent20bc18cd5d86b2e48a6ee6281d9e0577c797a0df (diff)
VertexLoader_Normal: use shorter notation
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Normal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
index 181b61bd6d..0d794d9944 100644
--- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
@@ -110,7 +110,7 @@ struct Normal_Direct_SSSE3
{
const T* pData = reinterpret_cast<const T*>(DataGetPosition());
const float frac = 1. / float(1u << (sizeof(T) * 8 - std::is_signed<T>::value - 1));
- const __m128 scale = _mm_set_ps(frac, frac, frac, frac);
+ const __m128 scale = _mm_set_ps1(frac);
for (int i = 0; i < N; i++, pData += 3)
Vertex_Read_SSSE3<T, true, true>(pData, scale);
DataSkip<N * 3 * sizeof(T)>();
@@ -128,7 +128,7 @@ __forceinline void Normal_Index_Offset_SSSE3()
const T* pData = (const T*)(cached_arraybases[ARRAY_NORMAL]
+ (index * g_main_cp_state.array_strides[ARRAY_NORMAL]) + sizeof(T) * 3 * Offset);
const float frac = 1. / float(1u << (sizeof(T) * 8 - std::is_signed<T>::value - 1));
- const __m128 scale = _mm_set_ps(frac, frac, frac, frac);
+ const __m128 scale = _mm_set_ps1(frac);
for (int i = 0; i < N; i++, pData += 3)
Vertex_Read_SSSE3<T, true, true>(pData, scale);
}