Added assignment operator for scalar float assignments.

This commit is contained in:
Davis King 2014-07-24 21:38:26 -04:00
parent 679e75ae34
commit f5c7248b20

View File

@ -29,6 +29,12 @@ namespace dlib
return *this;
}
inline simd4f& operator=(const float& val)
{
x = simd4f(val);
return *this;
}
inline simd4f& operator=(const __m128& val)
{
x = val;
@ -99,6 +105,12 @@ namespace dlib
return temp;
}
inline simd4f& operator=(const float& val)
{
*this = simd4f(val);
return *this;
}
inline simd4f& operator=(const simd4i& val)
{
x[0] = val[0];