changeset 280:47f774734b88

Enable W component manipulation.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 10 Oct 2012 23:09:56 +0300
parents 5acc1232c8c0
children 9ba4f25abbce
files dmvecmat.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dmvecmat.c	Wed Oct 10 23:08:45 2012 +0300
+++ b/dmvecmat.c	Wed Oct 10 23:09:56 2012 +0300
@@ -75,13 +75,11 @@
         "mulps       %%xmm6, %%xmm1\n"
         "addps       %%xmm1, %%xmm2\n"
 
-#if 0
         // W
         "movups      %%xmm0, %%xmm1\n"
         "shufps      $0xFF,  %%xmm1, %%xmm1\n"
         "mulps       %%xmm7, %%xmm1\n"
         "addps       %%xmm1, %%xmm2\n"
-#endif
 
         // Result ->
         "movups      %%xmm2, %0\n"
@@ -145,13 +143,12 @@
             "mulps       %%xmm6, %%xmm1\n"
             "addps       %%xmm1, %%xmm2\n"
 
-#if 0
             // W
             "movups      %%xmm0, %%xmm1\n"
             "shufps      $0xFF,  %%xmm1, %%xmm1\n"
             "mulps       %%xmm7, %%xmm1\n"
             "addps       %%xmm1, %%xmm2\n"
-#endif            
+
             // Result ->
             "movups      %%xmm2, %0\n"
             : "=m" (list[i])