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
9ed2ba9e
"tutorials/models/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "82499e602bbf9de8f2ec50a92f30512f7a2b14ef"
Commit
9ed2ba9e
authored
May 30, 2017
by
Evgeniy Fominov
Committed by
Davis E. King
May 30, 2017
Browse files
Possible CLang fix for Neon-based SIMD4i (#612)
parent
0ef3b736
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
dlib/simd/simd4f.h
dlib/simd/simd4f.h
+3
-3
dlib/simd/simd4i.h
dlib/simd/simd4i.h
+0
-1
No files found.
dlib/simd/simd4f.h
View file @
9ed2ba9e
...
@@ -390,7 +390,7 @@ namespace dlib
...
@@ -390,7 +390,7 @@ namespace dlib
#elif defined(DLIB_HAVE_VSX)
#elif defined(DLIB_HAVE_VSX)
return
vec_cmpeq
(
lhs
(),
rhs
());
return
vec_cmpeq
(
lhs
(),
rhs
());
#elif defined(DLIB_HAVE_NEON)
#elif defined(DLIB_HAVE_NEON)
return
vceqq_f32
(
lhs
,
rhs
);
return
(
int32x4_t
)
vceqq_f32
(
lhs
,
rhs
);
#else
#else
return
simd4f_bool
(
lhs
[
0
]
==
rhs
[
0
],
return
simd4f_bool
(
lhs
[
0
]
==
rhs
[
0
],
lhs
[
1
]
==
rhs
[
1
],
lhs
[
1
]
==
rhs
[
1
],
...
@@ -424,7 +424,7 @@ namespace dlib
...
@@ -424,7 +424,7 @@ namespace dlib
#elif defined(DLIB_HAVE_VSX)
#elif defined(DLIB_HAVE_VSX)
return
vec_cmplt
(
lhs
(),
rhs
());
return
vec_cmplt
(
lhs
(),
rhs
());
#elif defined(DLIB_HAVE_NEON)
#elif defined(DLIB_HAVE_NEON)
return
vcltq_f32
(
lhs
,
rhs
);
return
(
int32x4_t
)
vcltq_f32
(
lhs
,
rhs
);
#else
#else
return
simd4f_bool
(
lhs
[
0
]
<
rhs
[
0
],
return
simd4f_bool
(
lhs
[
0
]
<
rhs
[
0
],
lhs
[
1
]
<
rhs
[
1
],
lhs
[
1
]
<
rhs
[
1
],
...
@@ -449,7 +449,7 @@ namespace dlib
...
@@ -449,7 +449,7 @@ namespace dlib
#elif defined(DLIB_HAVE_VSX)
#elif defined(DLIB_HAVE_VSX)
return
vec_cmple
(
lhs
(),
rhs
());
return
vec_cmple
(
lhs
(),
rhs
());
#elif defined(DLIB_HAVE_NEON)
#elif defined(DLIB_HAVE_NEON)
return
vcleq_f32
(
lhs
,
rhs
);
return
(
int32x4_t
)
vcleq_f32
(
lhs
,
rhs
);
#else
#else
return
simd4f_bool
(
lhs
[
0
]
<=
rhs
[
0
],
return
simd4f_bool
(
lhs
[
0
]
<=
rhs
[
0
],
lhs
[
1
]
<=
rhs
[
1
],
lhs
[
1
]
<=
rhs
[
1
],
...
...
dlib/simd/simd4i.h
View file @
9ed2ba9e
...
@@ -105,7 +105,6 @@ namespace dlib
...
@@ -105,7 +105,6 @@ namespace dlib
x
=
vld1q_s32
(
data
);
x
=
vld1q_s32
(
data
);
}
}
inline
simd4i
(
const
int32x4_t
&
val
)
:
x
(
val
)
{}
inline
simd4i
(
const
int32x4_t
&
val
)
:
x
(
val
)
{}
inline
simd4i
(
const
uint32x4_t
&
val
)
:
x
((
int32x4_t
)
val
)
{}
inline
simd4i
&
operator
=
(
const
int32x4_t
&
val
)
inline
simd4i
&
operator
=
(
const
int32x4_t
&
val
)
{
{
...
...
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