diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2014-04-03 23:34:53 +0400 |
---|---|---|
committer | Sv. Lockal <lockalsash@gmail.com> | 2014-04-03 23:35:10 +0400 |
commit | ab32a1807dd153723d26a7d53895ed071233dafc (patch) | |
tree | f4e27eac2ecab3353ff558f346c1be1ad780c41f /intern/cycles/util/util_math.h | |
parent | c019ae5ea3a8eb49010de76c14a359c4729bbcf0 (diff) |
Cycles: SSE optimization for Voronoi cells texture
Gives 5-6% speedup for Caterpillar_PatazStudio.blend.
Reviewed By: brecht, dingto
Differential Revision: https://developer.blender.org/D419
Diffstat (limited to 'intern/cycles/util/util_math.h')
-rw-r--r-- | intern/cycles/util/util_math.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index b57aa26dbc4..53ed6817258 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -163,11 +163,7 @@ ccl_device_inline float clamp(float a, float mn, float mx) ccl_device_inline int float_to_int(float f) { -#if defined(__KERNEL_SSE2__) && !defined(_MSC_VER) - return _mm_cvtt_ss2si(_mm_load_ss(&f)); -#else return (int)f; -#endif } ccl_device_inline int floor_to_int(float f) |