From bd053ac7ba9718ef8649f766c6d084f49e19786c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 27 Mar 2017 16:08:39 +0200 Subject: Cycles: Correct ifdef around float3 intrinsics --- intern/cycles/util/util_math.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/util') diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index 2af0e56325f..84a5c800357 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -774,6 +774,7 @@ template __force return _mm_castsi128_ps(_mm_shuffle_epi32(_mm_castps_si128(b), _MM_SHUFFLE(index_3, index_2, index_1, index_0))); } +#if defined(__KERNEL_SSE3__) template<> __forceinline const float4 shuffle<0, 0, 2, 2>(const float4& b) { return _mm_moveldup_ps(b); @@ -783,6 +784,7 @@ template<> __forceinline const float4 shuffle<1, 1, 3, 3>(const float4& b) { return _mm_movehdup_ps(b); } +#endif template<> __forceinline const float4 shuffle<0, 1, 0, 1>(const float4& b) { -- cgit v1.2.3