[brlcad-commits] SF.net SVN: brlcad:[54070] brlcad/trunk/include/vector_x86.h
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <ca...@us...> - 2012-12-16 21:26:36
|
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. |