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/blenlib/intern/math_color_inline.c | |
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/blenlib/intern/math_color_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_color_inline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/math_color_inline.c b/source/blender/blenlib/intern/math_color_inline.c index 26828cb8717..4c50c1c7af8 100644 --- a/source/blender/blenlib/intern/math_color_inline.c +++ b/source/blender/blenlib/intern/math_color_inline.c @@ -34,7 +34,7 @@ /******************************** Color Space ********************************/ -# ifdef __SSE2__ +# ifdef BLI_HAVE_SSE2 MALWAYS_INLINE __m128 srgb_to_linearrgb_v4_simd(const __m128 c) { @@ -75,7 +75,7 @@ MINLINE void linearrgb_to_srgb_v3_v3(float srgb[3], const float linear[3]) srgb[2] = r[2]; } -# else /* __SSE2__ */ +# else /* BLI_HAVE_SSE2 */ MINLINE void srgb_to_linearrgb_v3_v3(float linear[3], const float srgb[3]) { @@ -90,7 +90,7 @@ MINLINE void linearrgb_to_srgb_v3_v3(float srgb[3], const float linear[3]) srgb[1] = linearrgb_to_srgb(linear[1]); srgb[2] = linearrgb_to_srgb(linear[2]); } -# endif /* __SSE2__ */ +# endif /* BLI_HAVE_SSE2 */ MINLINE void srgb_to_linearrgb_v4(float linear[4], const float srgb[4]) { |