diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-13 16:01:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-13 16:08:00 +0300 |
commit | e6392458d3210c5865ebf0b263406f11e7483f47 (patch) | |
tree | 8fc45fff782ab86547195e19ec79688178e8adc8 /intern | |
parent | 0706b908db400fddc2e653aa9e640c65c6b8a732 (diff) |
Cycles: Remove unused function
It was quite wrong actually by doing some __m128 to flaot4 round trips.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_math.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index e0305b978b9..47fa181af83 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -1493,31 +1493,6 @@ ccl_device_inline float2 map_to_sphere(const float3 co) return make_float2(u, v); } -ccl_device_inline int util_max_axis(float3 vec) -{ -#ifdef __KERNEL_SSE__ - __m128 a = shuffle<0,0,1,1>(vec.m128); - __m128 b = shuffle<1,2,2,1>(vec.m128); - __m128 c = _mm_cmpgt_ps(a, b); - int mask = _mm_movemask_ps(c) & 0x7; - static const char tab[8] = {2, 2, 2, 0, 1, 2, 1, 0}; - return tab[mask]; -#else - if(vec.x > vec.y) { - if(vec.x > vec.z) - return 0; - else - return 2; - } - else { - if(vec.y > vec.z) - return 1; - else - return 2; - } -#endif -} - CCL_NAMESPACE_END #endif /* __UTIL_MATH_H__ */ |