forked from bartvdbraak/blender
Cycles: Enable SSE math optimization for AVX kernels
This gives about 5% speedup for AVX processors. Benefit of such optimization on other microarchitectures is still under investigation.
This commit is contained in:
parent
8c761ff838
commit
c54381488b
@ -42,6 +42,7 @@
|
||||
# define __KERNEL_SSE41__
|
||||
# endif
|
||||
# ifdef __AVX__
|
||||
# define __KERNEL_SSE__
|
||||
# define __KERNEL_AVX__
|
||||
# endif
|
||||
# ifdef __AVX2__
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
|
||||
#if !(defined(__GNUC__) && (defined(i386) || defined(_M_IX86)))
|
||||
# define __KERNEL_SSE__
|
||||
# define __KERNEL_SSE2__
|
||||
# define __KERNEL_SSE3__
|
||||
# define __KERNEL_SSSE3__
|
||||
|
Loading…
Reference in New Issue
Block a user