[brlcad-commits] SF.net SVN: brlcad:[54080] brlcad/trunk/include
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <ca...@us...> - 2012-12-17 20:20:30
|
Revision: 54080 http://brlcad.svn.sourceforge.net/brlcad/?rev=54080&view=rev Author: caen23 Date: 2012-12-17 20:20:23 +0000 (Mon, 17 Dec 2012) Log Message: ----------- Overloading functions to accept float arguments is no longer necessary Modified Paths: -------------- brlcad/trunk/include/dvec.h brlcad/trunk/include/vector_x86.h Modified: brlcad/trunk/include/dvec.h =================================================================== --- brlcad/trunk/include/dvec.h 2012-12-17 20:07:40 UTC (rev 54079) +++ brlcad/trunk/include/dvec.h 2012-12-17 20:20:23 UTC (rev 54080) @@ -65,15 +65,12 @@ class dvec { public: dvec(double s); - dvec(const float* vals); dvec(const double* vals); dvec(const dvec<LEN>& p); dvec<LEN>& operator=(const dvec<LEN>& p); double operator[](int index) const; - void u_store(float* arr) const; void u_store(double* arr) const; - void a_store(float* arr) const; void a_store(double* arr) const; bool operator==(const dvec<LEN>& b) const; @@ -186,12 +183,8 @@ dvec<2> sq = a*a; return sqrt(sq.foldr(0, dvec<2>::add())); } + inline - void move(pt2d_t a, const float *b) { - a[0] = b[0]; - a[1] = b[1]; - } - inline void move(pt2d_t a, const double *b) { a[0] = b[0]; a[1] = b[1]; Modified: brlcad/trunk/include/vector_x86.h =================================================================== --- brlcad/trunk/include/vector_x86.h 2012-12-17 20:07:40 UTC (rev 54079) +++ brlcad/trunk/include/vector_x86.h 2012-12-17 20:20:23 UTC (rev 54080) @@ -60,15 +60,6 @@ } template<int LEN> -inline dvec<LEN>::dvec(const float* vals) -{ - for (int i = 0; i < LEN/2; i++) { - /* NOTE: assumes that vals are 16-byte aligned */ - data.v[i] = _mm_load_ps(&vals[i*2]); - } -} - -template<int LEN> inline dvec<LEN>::dvec(const double* vals) { for (int i = 0; i < LEN/2; i++) { @@ -135,15 +126,6 @@ } template<int LEN> -inline void -dvec<LEN>::a_store(float* arr) const -{ - for (int i = 0; i < LEN/4; i++) { - _mm_store_ps(&arr[i*4], 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. |