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.
------------------------------------------------------------------------------
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