Blender  V3.3
BLI_simd.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
11 #if defined(__ARM_NEON) && defined(WITH_SSE2NEON)
12 /* SSE/SSE2 emulation on ARM Neon. Match SSE precision. */
13 # define SSE2NEON_PRECISE_MINMAX 1
14 # define SSE2NEON_PRECISE_DIV 1
15 # define SSE2NEON_PRECISE_SQRT 1
16 # include <sse2neon.h>
17 # define BLI_HAVE_SSE2
18 #elif defined(__SSE2__)
19 /* Native SSE2 on Intel/AMD. */
20 # include <emmintrin.h>
21 # define BLI_HAVE_SSE2
22 #endif