Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
5d755e7f
Commit
5d755e7f
authored
May 02, 2020
by
Marc Marí
Browse files
Simplify reduceAdd for ARM64
parent
83be63ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
openmmapi/include/openmm/internal/vectorize_neon.h
openmmapi/include/openmm/internal/vectorize_neon.h
+4
-0
No files found.
openmmapi/include/openmm/internal/vectorize_neon.h
View file @
5d755e7f
...
@@ -340,7 +340,11 @@ static inline float dot4(fvec4 v1, fvec4 v2) {
...
@@ -340,7 +340,11 @@ static inline float dot4(fvec4 v1, fvec4 v2) {
}
}
static
inline
float
reduceAdd
(
fvec4
v
)
{
static
inline
float
reduceAdd
(
fvec4
v
)
{
#ifdef __ARM64__
return
vaddvq_f32
(
v
);
#else
return
dot4
(
v
,
fvec4
(
1.0
f
));
return
dot4
(
v
,
fvec4
(
1.0
f
));
#endif
}
}
static
inline
fvec4
cross
(
fvec4
v1
,
fvec4
v2
)
{
static
inline
fvec4
cross
(
fvec4
v1
,
fvec4
v2
)
{
...
...
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