1 | // Copyright 2009-2021 Intel Corporation |
2 | // SPDX-License-Identifier: Apache-2.0 |
3 | |
4 | #include "sse.h" |
5 | |
6 | namespace embree |
7 | { |
8 | const __m128 mm_lookupmask_ps[16] = { |
9 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0, i2: 0, i1: 0, i0: 0)), |
10 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0, i2: 0, i1: 0,i0: -1)), |
11 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0, i2: 0,i1: -1, i0: 0)), |
12 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0, i2: 0,i1: -1,i0: -1)), |
13 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0,i2: -1, i1: 0, i0: 0)), |
14 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0,i2: -1, i1: 0,i0: -1)), |
15 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0,i2: -1,i1: -1, i0: 0)), |
16 | _mm_castsi128_ps(a: _mm_set_epi32( i3: 0,i2: -1,i1: -1,i0: -1)), |
17 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1, i2: 0, i1: 0, i0: 0)), |
18 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1, i2: 0, i1: 0,i0: -1)), |
19 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1, i2: 0,i1: -1, i0: 0)), |
20 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1, i2: 0,i1: -1,i0: -1)), |
21 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1,i2: -1, i1: 0, i0: 0)), |
22 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1,i2: -1, i1: 0,i0: -1)), |
23 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1,i2: -1,i1: -1, i0: 0)), |
24 | _mm_castsi128_ps(a: _mm_set_epi32(i3: -1,i2: -1,i1: -1,i0: -1)) |
25 | }; |
26 | |
27 | const __m128d mm_lookupmask_pd[4] = { |
28 | _mm_castsi128_pd(a: _mm_set_epi32( i3: 0, i2: 0, i1: 0, i0: 0)), |
29 | _mm_castsi128_pd(a: _mm_set_epi32( i3: 0, i2: 0,i1: -1,i0: -1)), |
30 | _mm_castsi128_pd(a: _mm_set_epi32(i3: -1,i2: -1, i1: 0, i0: 0)), |
31 | _mm_castsi128_pd(a: _mm_set_epi32(i3: -1,i2: -1,i1: -1,i0: -1)) |
32 | }; |
33 | |
34 | } |
35 | |