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>2018-09-17 19:05:32 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-09-17 19:05:32 +0300
commit81f1f9c85edb5499e4e04117f5d4e32941f45de1 (patch)
tree0024256f9b37d0b028715c3fa78fa55ddaa2a613 /intern/cycles/util
parent82e729d986064f76990528431b1c766e18347d3b (diff)
Cycles: Remove unused malformed function
This isn't really possible to do the shuffle which was attempted to do. While it's possible to achieve expected behavior, the function needs to be rewritten. Since it's not used anyway, it's simpler to remove it for now.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_avxb.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/intern/cycles/util/util_avxb.h b/intern/cycles/util/util_avxb.h
index 1f5dc898cb4..2861d8a7f42 100644
--- a/intern/cycles/util/util_avxb.h
+++ b/intern/cycles/util/util_avxb.h
@@ -114,14 +114,6 @@ __forceinline const avxb select( const avxb& m, const avxb& t, const avxb& f ) {
__forceinline const avxb unpacklo( const avxb& a, const avxb& b ) { return _mm256_unpacklo_ps(a, b); }
__forceinline const avxb unpackhi( const avxb& a, const avxb& b ) { return _mm256_unpackhi_ps(a, b); }
-#define _MM256_SHUFFLE(fp7,fp6,fp5,fp4,fp3,fp2,fp1,fp0) (((fp7) << 14) | ((fp6) << 12) | ((fp5) << 10) | ((fp4) << 8) | \
- ((fp3) << 6) | ((fp2) << 4) | ((fp1) << 2) | ((fp0)))
-
-template<size_t i0, size_t i1, size_t i2, size_t i3, size_t i4, size_t i5, size_t i6, size_t i7>
-__forceinline const avxb shuffle( const avxb& a ) {
- return _mm256_cvtepi32_ps(_mm256_shuffle_epi32(a, _MM256_SHUFFLE(i7, i6, i5, i4, i3, i2, i1, i0)));
-}
-
/*
template<> __forceinline const avxb shuffle<0, 1, 0, 1, 0, 1, 0, 1>( const avxb& a ) {
return _mm_movelh_ps(a, a);