"docs/git@developer.sourcefind.cn:change/sglang.git" did not exist on "0a59a4657ad1c2f417d2b890b85f66daeea3e5ac"
Commit f5c7248b authored by Davis King's avatar Davis King
Browse files

Added assignment operator for scalar float assignments.

parent 679e75ae
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment