diff options
Diffstat (limited to 'source/blender/blenlib/BLI_simd.h')
-rw-r--r-- | source/blender/blenlib/BLI_simd.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_simd.h b/source/blender/blenlib/BLI_simd.h index 1518b6c1de2..2ebbd7a2250 100644 --- a/source/blender/blenlib/BLI_simd.h +++ b/source/blender/blenlib/BLI_simd.h @@ -22,7 +22,15 @@ * SIMD instruction support. */ -#if defined(__SSE2__) +#if defined(__ARM_NEON) && defined(WITH_SSE2NEON) +/* SSE/SSE2 emulation on ARM Neon. Match SSE precision. */ +# define SSE2NEON_PRECISE_MINMAX 1 +# define SSE2NEON_PRECISE_DIV 1 +# define SSE2NEON_PRECISE_SQRT 1 +# include <sse2neon.h> +# define BLI_HAVE_SSE2 +#elif defined(__SSE2__) +/* Native SSE2 on Intel/AMD. */ # include <emmintrin.h> # define BLI_HAVE_SSE2 #endif |