diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-02-14 16:20:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-02-17 18:26:24 +0300 |
commit | 859118d8f6ff022a16acbc6435488883424bad25 (patch) | |
tree | e0f708929a884070f7c3758f7fb58527cbdfd555 /source/blender/compositor/operations/COM_BlurBaseOperation.h | |
parent | ac680c569e1b979f20c2e81dbd4f232085141aad (diff) |
BLI: add BLI_simd.h header to wrap SSE includes
In preparation of adding Neon support.
Ref D8237, T78710
Diffstat (limited to 'source/blender/compositor/operations/COM_BlurBaseOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_BlurBaseOperation.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_BlurBaseOperation.h b/source/blender/compositor/operations/COM_BlurBaseOperation.h index c452b2e4ea1..56dacc96710 100644 --- a/source/blender/compositor/operations/COM_BlurBaseOperation.h +++ b/source/blender/compositor/operations/COM_BlurBaseOperation.h @@ -23,16 +23,14 @@ #define MAX_GAUSSTAB_RADIUS 30000 -#ifdef __SSE2__ -# include <emmintrin.h> -#endif +#include "BLI_simd.h" class BlurBaseOperation : public NodeOperation, public QualityStepHelper { private: protected: BlurBaseOperation(DataType data_type); float *make_gausstab(float rad, int size); -#ifdef __SSE2__ +#ifdef BLI_HAVE_SSE2 __m128 *convert_gausstab_sse(const float *gausstab, int size); #endif float *make_dist_fac_inverse(float rad, int size, int falloff); |