Revision: 54071
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54071&view=rev
Author:   caen23
Date:     2012-12-16 21:35:28 +0000 (Sun, 16 Dec 2012)
Log Message:
-----------
_mm_store_pd stores 2 doubles, while _mm_store_ps stores 4 floats, so update 
code accordingly

Modified Paths:
--------------
    brlcad/trunk/include/vector_x86.h

Modified: brlcad/trunk/include/vector_x86.h
===================================================================
--- brlcad/trunk/include/vector_x86.h   2012-12-16 21:26:29 UTC (rev 54070)
+++ brlcad/trunk/include/vector_x86.h   2012-12-16 21:35:28 UTC (rev 54071)
@@ -138,8 +138,8 @@
 inline void
 dvec<LEN>::a_store(float* arr) const
 {
-    for (int i = 0; i < LEN/2; i++) {
-       _mm_store_ps(&arr[i*2], data.v[i]);
+    for (int i = 0; i < LEN/4; i++) {
+       _mm_store_ps(&arr[i*4], data.v[i]);
     }
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to