Adde vec4 swizzle operators SIMD optimizations
This commit is contained in:
@@ -1243,11 +1243,13 @@ int main()
|
||||
glm::int32 const c(1);
|
||||
glm::int32 const d = ~c;
|
||||
|
||||
# if GLM_ARCH & GLM_ARCH_AVX_BIT
|
||||
glm_vec4 const A = _mm_set_ps(4, 3, 2, 1);
|
||||
glm_vec4 const B = glm_vec4_swizzle_xyzw(A);
|
||||
glm_vec4 const C = _mm_permute_ps(A, _MM_SHUFFLE(3, 2, 1, 0));
|
||||
glm_vec4 const D = _mm_permute_ps(A, _MM_SHUFFLE(0, 1, 2, 3));
|
||||
glm_vec4 const E = _mm_shuffle_ps(A, A, _MM_SHUFFLE(0, 1, 2, 3));
|
||||
# endif
|
||||
|
||||
Error += sign::test();
|
||||
Error += floor_::test();
|
||||
|
||||
Reference in New Issue
Block a user