1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-09 14:10:09 +00:00

Prefer use of shuffle to permute for non-Intel processors

This commit is contained in:
Chuck Walbourn 2020-03-04 15:37:40 -08:00
parent bdb574c97e
commit 5008416aba

View File

@ -158,7 +158,7 @@
#define XM_SFENCE() _mm_sfence()
#endif
#if defined(_XM_AVX_INTRINSICS_)
#if defined(_XM_AVX_INTRINSICS_) && defined(_XM_FAVOR_INTEL_)
#define XM_PERMUTE_PS( v, c ) _mm_permute_ps( v, c )
#else
#define XM_PERMUTE_PS( v, c ) _mm_shuffle_ps( v, v, c )