Code cleanup: some reshuffling of SIMD defines moving more code to util_optimization.h.

This commit is contained in:
Brecht Van Lommel
2014-01-15 15:11:50 +01:00
parent ebbb6adf32
commit 8af782ad22
6 changed files with 94 additions and 69 deletions

View File

@@ -17,16 +17,16 @@
/* Optimized CPU kernel entry points. This file is compiled with SSE2
* optimization flags and nearly all functions inlined, while kernel.cpp
* is compiled without for other CPU's. */
#include "util_optimization.h"
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_SSE2
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
#if !(defined(__GNUC__) && (defined(i386) || defined(_M_IX86)))
#define __KERNEL_SSE2__
#endif
#include "util_optimization.h"
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_SSE2
#include "kernel.h"
#include "kernel_compat_cpu.h"
#include "kernel_math.h"