--- a/include/vector.h Sun Apr 27 14:19:37 2008 +0200
+++ b/include/vector.h Sun Apr 27 19:56:23 2008 +0200
@@ -191,11 +191,6 @@
typedef Vector3 Colour;
-
-static const __m128 zeros = _mm_set_ps1(0.);
-static const __m128 ones = _mm_set_ps1(1.);
-static const __m128 mEps = _mm_set_ps1(Eps);
-
class VectorPacket
{
public:
@@ -231,7 +226,7 @@
m = _mm_add_ps(x, y);
m = _mm_add_ps(m, z); // x*x + y*y + z*z
m = _mm_sqrt_ps(m);
- m = _mm_div_ps(ones, m); // m = 1/sqrt(m)
+ m = _mm_div_ps(mOne, m); // m = 1/sqrt(m)
mx = _mm_mul_ps(mx, m);
my = _mm_mul_ps(my, m);
mz = _mm_mul_ps(mz, m);
@@ -272,7 +267,7 @@
// write to character stream
friend ostream & operator<<(ostream &st, const VectorPacket &v)
{
- return st << "[" << v.getVector(0) << "," << v.getVector(1)
+ return st << "[" << v.getVector(0) << "," << v.getVector(1)
<< "," << v.getVector(2) << "," << v.getVector(3) << ")";
};