2011-11-15 15:13:38 +00:00
|
|
|
/*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Copyright 2011-2013 Blender Foundation
|
2011-11-15 15:13:38 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2011-11-15 15:13:38 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2011-11-15 15:13:38 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
2014-12-25 01:50:24 +00:00
|
|
|
* limitations under the License.
|
2011-11-15 15:13:38 +00:00
|
|
|
*/
|
|
|
|
|
2013-02-04 18:50:09 +00:00
|
|
|
/* Optimized CPU kernel entry points. This file is compiled with SSE2
|
2012-06-09 17:22:52 +00:00
|
|
|
* optimization flags and nearly all functions inlined, while kernel.cpp
|
|
|
|
* is compiled without for other CPU's. */
|
2011-11-15 15:13:38 +00:00
|
|
|
|
2013-10-05 19:56:34 +00:00
|
|
|
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
|
|
|
|
#if !(defined(__GNUC__) && (defined(i386) || defined(_M_IX86)))
|
2013-06-26 23:29:33 +00:00
|
|
|
#define __KERNEL_SSE2__
|
2013-10-05 19:56:34 +00:00
|
|
|
#endif
|
2013-06-26 22:12:23 +00:00
|
|
|
|
2014-01-15 14:11:50 +00:00
|
|
|
#include "util_optimization.h"
|
|
|
|
|
|
|
|
#ifdef WITH_CYCLES_OPTIMIZED_KERNEL_SSE2
|
2015-12-30 12:54:02 +00:00
|
|
|
# include "kernel.h"
|
|
|
|
# define KERNEL_ARCH cpu_sse2
|
|
|
|
# include "kernel_cpu_impl.h"
|
2014-01-14 21:48:23 +00:00
|
|
|
|
2015-12-30 12:54:02 +00:00
|
|
|
#endif /* WITH_CYCLES_OPTIMIZED_KERNEL_SSE2 */
|