Cycles: Make all #include statements relative to cycles source directory
[blender.git] / intern / cycles / util / util_simd.cpp
1 /*
2  * Copyright 2011-2013 Intel Corporation
3  * Modifications Copyright 2014, Blender Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 #if (defined(WITH_KERNEL_SSE2)) || \
19     (defined(WITH_KERNEL_NATIVE) && defined(__SSE2__))
20
21 #define __KERNEL_SSE2__
22 #include "util/util_simd.h"
23
24 CCL_NAMESPACE_BEGIN
25
26 const __m128 _mm_lookupmask_ps[16] = {
27         _mm_castsi128_ps(_mm_set_epi32( 0, 0, 0, 0)),
28         _mm_castsi128_ps(_mm_set_epi32( 0, 0, 0,-1)),
29         _mm_castsi128_ps(_mm_set_epi32( 0, 0,-1, 0)),
30         _mm_castsi128_ps(_mm_set_epi32( 0, 0,-1,-1)),
31         _mm_castsi128_ps(_mm_set_epi32( 0,-1, 0, 0)),
32         _mm_castsi128_ps(_mm_set_epi32( 0,-1, 0,-1)),
33         _mm_castsi128_ps(_mm_set_epi32( 0,-1,-1, 0)),
34         _mm_castsi128_ps(_mm_set_epi32( 0,-1,-1,-1)),
35         _mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, 0)),
36         _mm_castsi128_ps(_mm_set_epi32(-1, 0, 0,-1)),
37         _mm_castsi128_ps(_mm_set_epi32(-1, 0,-1, 0)),
38         _mm_castsi128_ps(_mm_set_epi32(-1, 0,-1,-1)),
39         _mm_castsi128_ps(_mm_set_epi32(-1,-1, 0, 0)),
40         _mm_castsi128_ps(_mm_set_epi32(-1,-1, 0,-1)),
41         _mm_castsi128_ps(_mm_set_epi32(-1,-1,-1, 0)),
42         _mm_castsi128_ps(_mm_set_epi32(-1,-1,-1,-1))
43 };
44
45
46 CCL_NAMESPACE_END
47
48 #endif  // WITH_KERNEL_SSE2