Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
c5847374
Commit
c5847374
authored
Jun 21, 2017
by
Davis King
Browse files
Added operator= for simd8f so assignment from float compiles.
parent
cbd187fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dlib/simd/simd8f.h
dlib/simd/simd8f.h
+5
-0
No files found.
dlib/simd/simd8f.h
View file @
c5847374
...
@@ -42,6 +42,11 @@ namespace dlib
...
@@ -42,6 +42,11 @@ namespace dlib
inline
void
store
(
type
*
ptr
)
const
{
_mm256_storeu_ps
(
ptr
,
x
);
}
inline
void
store
(
type
*
ptr
)
const
{
_mm256_storeu_ps
(
ptr
,
x
);
}
inline
simd8f
&
operator
=
(
const
simd8i
&
rhs
)
{
*
this
=
simd8f
(
rhs
);
return
*
this
;
}
inline
simd8f
&
operator
=
(
const
simd8i
&
rhs
)
{
*
this
=
simd8f
(
rhs
);
return
*
this
;
}
inline
simd8f
&
operator
=
(
const
float
&
val
)
{
x
=
simd8f
(
val
);
return
*
this
;
}
inline
unsigned
int
size
()
const
{
return
8
;
}
inline
unsigned
int
size
()
const
{
return
8
;
}
inline
float
operator
[](
unsigned
int
idx
)
const
inline
float
operator
[](
unsigned
int
idx
)
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment