Revetr previous paatch for SGVec4 so close to the release
This commit is contained in:
@@ -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 ...
|
||||||
|
|||||||
Reference in New Issue
Block a user