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
15a039ab
"...ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "3cb6f8d709d720fefbe4aa21f1e6fc2afd69590d"
Commit
15a039ab
authored
Apr 14, 2020
by
Marc Marí
Browse files
Simplify vec4 any for ARM64
parent
bd333a1b
Changes
1
Hide 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 @
15a039ab
...
@@ -382,7 +382,11 @@ static inline ivec4 abs(const ivec4& v) {
...
@@ -382,7 +382,11 @@ static inline ivec4 abs(const ivec4& v) {
}
}
static
inline
bool
any
(
const
ivec4
&
v
)
{
static
inline
bool
any
(
const
ivec4
&
v
)
{
#ifdef __ARM64__
return
(
vmaxvq_u32
(
vreinterpretq_u32_s32
(
v
))
!=
0
);
#else
return
(
vgetq_lane_s32
(
v
,
0
)
!=
0
||
vgetq_lane_s32
(
v
,
1
)
!=
0
||
vgetq_lane_s32
(
v
,
2
)
!=
0
||
vgetq_lane_s32
(
v
,
3
)
!=
0
);
return
(
vgetq_lane_s32
(
v
,
0
)
!=
0
||
vgetq_lane_s32
(
v
,
1
)
!=
0
||
vgetq_lane_s32
(
v
,
2
)
!=
0
||
vgetq_lane_s32
(
v
,
3
)
!=
0
);
#endif
}
}
// Mathematical operators involving a scalar and a vector.
// Mathematical operators involving a scalar and a vector.
...
...
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