Refactoring of swizzle operators, preparing for vec4 swizzle SIMD optimizations

This commit is contained in:
Christophe Riccio
2016-05-30 01:39:16 +02:00
parent 89f6da9552
commit b9199a2c1a
8 changed files with 601 additions and 580 deletions

View File

@@ -1243,6 +1243,12 @@ int main()
glm::int32 const c(1);
glm::int32 const d = ~c;
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));
Error += sign::test();
Error += floor_::test();
Error += mod_::test();

View File

@@ -502,6 +502,7 @@ int test_vec4_simd()
int main()
{
int Error(0);
/*
{
glm::ivec4 const a1(2);