Revetr previous paatch for SGVec4 so close to the release

This commit is contained in:
Erik Hofman
2016-11-17 11:50:15 +01:00
parent ff7e4597e7
commit 2eb17d0083
+3 -4
View File
@@ -19,7 +19,6 @@
#define SGVec4_H #define SGVec4_H
#include <iosfwd> #include <iosfwd>
#include "simd.hxx"
/// 4D Vector Class /// 4D Vector Class
template<typename T> template<typename T>
@@ -93,10 +92,10 @@ public:
/// Readonly raw storage interface /// Readonly raw storage interface
const T (&data(void) const)[4] const T (&data(void) const)[4]
{ return _data.ptr(); } { return _data; }
/// Readonly raw storage interface /// Readonly raw storage interface
T (&data(void))[4] T (&data(void))[4]
{ return _data.ptr(); } { return _data; }
/// Inplace addition /// Inplace addition
SGVec4& operator+=(const SGVec4& v) SGVec4& operator+=(const SGVec4& v)
@@ -127,7 +126,7 @@ public:
{ return SGVec4(0, 0, 0, 1); } { return SGVec4(0, 0, 0, 1); }
private: private:
simd4_t<T> _data; T _data[4];
}; };
/// Unary +, do nothing ... /// Unary +, do nothing ...