Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
9ed2ba9e
Commit
9ed2ba9e
authored
May 30, 2017
by
Evgeniy Fominov
Committed by
Davis E. King
May 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possible CLang fix for Neon-based SIMD4i (#612)
parent
0ef3b736
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
simd4f.h
dlib/simd/simd4f.h
+3
-3
simd4i.h
dlib/simd/simd4i.h
+0
-1
No files found.
dlib/simd/simd4f.h
View file @
9ed2ba9e
...
...
@@ -390,7 +390,7 @@ namespace dlib
#elif defined(DLIB_HAVE_VSX)
return
vec_cmpeq
(
lhs
(),
rhs
());
#elif defined(DLIB_HAVE_NEON)
return
vceqq_f32
(
lhs
,
rhs
);
return
(
int32x4_t
)
vceqq_f32
(
lhs
,
rhs
);
#else
return
simd4f_bool
(
lhs
[
0
]
==
rhs
[
0
],
lhs
[
1
]
==
rhs
[
1
],
...
...
@@ -424,7 +424,7 @@ namespace dlib
#elif defined(DLIB_HAVE_VSX)
return
vec_cmplt
(
lhs
(),
rhs
());
#elif defined(DLIB_HAVE_NEON)
return
vcltq_f32
(
lhs
,
rhs
);
return
(
int32x4_t
)
vcltq_f32
(
lhs
,
rhs
);
#else
return
simd4f_bool
(
lhs
[
0
]
<
rhs
[
0
],
lhs
[
1
]
<
rhs
[
1
],
...
...
@@ -449,7 +449,7 @@ namespace dlib
#elif defined(DLIB_HAVE_VSX)
return
vec_cmple
(
lhs
(),
rhs
());
#elif defined(DLIB_HAVE_NEON)
return
vcleq_f32
(
lhs
,
rhs
);
return
(
int32x4_t
)
vcleq_f32
(
lhs
,
rhs
);
#else
return
simd4f_bool
(
lhs
[
0
]
<=
rhs
[
0
],
lhs
[
1
]
<=
rhs
[
1
],
...
...
dlib/simd/simd4i.h
View file @
9ed2ba9e
...
...
@@ -105,7 +105,6 @@ namespace dlib
x
=
vld1q_s32
(
data
);
}
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
)
{
...
...
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