Revision: 54070
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54070&view=rev
Author:   caen23
Date:     2012-12-16 21:26:29 +0000 (Sun, 16 Dec 2012)
Log Message:
-----------
Overload a_store() to work with float* arguments, too. This enables compilation 
on the Mac

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:01:36 UTC (rev 54069)
+++ brlcad/trunk/include/vector_x86.h   2012-12-16 21:26:29 UTC (rev 54070)
@@ -135,6 +135,15 @@
 }
 
 template<int LEN>
+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]);
+    }
+}
+
+template<int LEN>
 inline bool
 dvec<LEN>::operator==(const dvec<LEN>& b) const
 {

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