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