Cycles Refactor: Add SSE Utility code from Embree for cleaner SSE code.

This makes the code a bit easier to understand, and might come in handy
if we want to reuse more Embree code.

Differential Revision: https://developer.blender.org/D482

Code by Brecht, with fixes by Lockal, Sergey and myself.
This commit is contained in:
Thomas Dinges
2014-06-13 21:13:18 +02:00
parent d0573ce905
commit cd5e1ff74e
21 changed files with 1744 additions and 487 deletions

View File

@@ -101,6 +101,10 @@
/* SSE intrinsics headers */
#ifndef FREE_WINDOWS64
#ifdef _MSC_VER
#include <intrin.h>
#else
#ifdef __KERNEL_SSE2__
#include <xmmintrin.h> /* SSE 1 */
#include <emmintrin.h> /* SSE 2 */
@@ -118,6 +122,12 @@
#include <smmintrin.h> /* SSE 4.1 */
#endif
#ifdef __KERNEL_AVX__
#include <immintrin.h> /* AVX */
#endif
#endif
#else
/* MinGW64 has conflicting declarations for these SSE headers in <windows.h>.