mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added assignment operator for scalar float assignments.
This commit is contained in:
parent
679e75ae34
commit
f5c7248b20
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user