9cfc7967dd
* Replace license text in headers with SPDX identifiers. * Remove specific license info from outdated readme.txt, instead leave details to the source files. * Add list of SPDX license identifiers used, and corresponding license texts. * Update copyright dates while we're at it. Ref D14069, T95597
32 lines
1.7 KiB
C++
32 lines
1.7 KiB
C++
/* SPDX-License-Identifier: Apache-2.0
|
|
* Copyright 2011-2013 Intel Corporation
|
|
* Modifications Copyright 2014-2022 Blender Foundation. */
|
|
|
|
#if (defined(WITH_KERNEL_SSE2)) || (defined(WITH_KERNEL_NATIVE) && defined(__SSE2__))
|
|
|
|
# define __KERNEL_SSE2__
|
|
# include "util/simd.h"
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
const __m128 _mm_lookupmask_ps[16] = {_mm_castsi128_ps(_mm_set_epi32(0, 0, 0, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(0, 0, 0, -1)),
|
|
_mm_castsi128_ps(_mm_set_epi32(0, 0, -1, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(0, 0, -1, -1)),
|
|
_mm_castsi128_ps(_mm_set_epi32(0, -1, 0, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(0, -1, 0, -1)),
|
|
_mm_castsi128_ps(_mm_set_epi32(0, -1, -1, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(0, -1, -1, -1)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, 0, 0, -1)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, 0, -1, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, 0, -1, -1)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, -1, 0, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, -1, 0, -1)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, -1, -1, 0)),
|
|
_mm_castsi128_ps(_mm_set_epi32(-1, -1, -1, -1))};
|
|
|
|
CCL_NAMESPACE_END
|
|
|
|
#endif // WITH_KERNEL_SSE2
|