Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-03-27 17:08:39 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-03-27 17:13:07 +0300
commitbd053ac7ba9718ef8649f766c6d084f49e19786c (patch)
tree0e7ae4d776e6bd344a3cffb66a68db9c616d336a /intern/cycles
parent2a05292efacca3cee302078199d9cbf3fd3d4929 (diff)
Cycles: Correct ifdef around float3 intrinsics
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/util/util_math.h2
1 files changed, 2 insertions, 0 deletions
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<size_t index_0, size_t index_1, size_t index_2, size_t index_3> __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)
{