From 6a26771cd5bd203efaa23c0e555ea2dfc7baa7c1 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 12 Jan 2015 12:22:10 +0100 Subject: [PATCH] VertexLoader_Normal: use shorter notation --- Source/Core/VideoCommon/VertexLoader_Normal.cpp | 4 ++-- 1 file 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(DataGetPosition()); const float frac = 1. / float(1u << (sizeof(T) * 8 - std::is_signed::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(pData, scale); DataSkip(); @@ -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::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(pData, scale); }