Commit dc4cc092 authored by Davis King's avatar Davis King

More stuff to avoid compiler errors in clang

parent 39eef90b
...@@ -99,6 +99,16 @@ namespace dlib ...@@ -99,6 +99,16 @@ namespace dlib
return temp; return temp;
} }
inline simd4f& operator=(const simd4i& val)
{
x[0] = val[0];
x[1] = val[1];
x[2] = val[2];
x[3] = val[3];
return *this;
}
void load_aligned(const type* ptr) void load_aligned(const type* ptr)
{ {
x[0] = ptr[0]; x[0] = ptr[0];
......
...@@ -100,8 +100,8 @@ namespace dlib ...@@ -100,8 +100,8 @@ namespace dlib
operator simd8i::rawarray() const operator simd8i::rawarray() const
{ {
simd8i::rawarray temp; simd8i::rawarray temp;
temp.low = _low; temp.low = simd4i(_low);
temp.high = _high; temp.high = simd4i(_high);
return temp; return temp;
} }
......
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