 |
Blender V4.3
|
Go to the documentation of this file.
15#if !defined(__cplusplus)
16# error Including BLI_simd.hh requires C++
19#if (defined(__ARM_NEON) || (defined(_M_ARM64) && defined(_MSC_VER))) && \
20 defined(WITH_SSE2NEON) && !defined(DISABLE_SSE2NEON)
22# if !defined(SSE2NEON_PRECISE_MINMAX)
23# define SSE2NEON_PRECISE_MINMAX 1
25# if !defined(SSE2NEON_PRECISE_DIV)
26# define SSE2NEON_PRECISE_DIV 1
28# if !defined(SSE2NEON_PRECISE_SQRT)
29# define SSE2NEON_PRECISE_SQRT 1
32# define BLI_HAVE_SSE2 1
33#elif defined(__SSE2__)
35# include <emmintrin.h>
36# define BLI_HAVE_SSE2 1
38# define BLI_HAVE_SSE2 0
41#if (defined(__ARM_NEON) || (defined(_M_ARM64) && defined(_MSC_VER))) && \
42 defined(WITH_SSE2NEON) && !defined(DISABLE_SSE2NEON)
44# define BLI_HAVE_SSE4 1
45#elif defined(__SSE4_2__)
47# include <nmmintrin.h>
48# define BLI_HAVE_SSE4 1
50# define BLI_HAVE_SSE4 0