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
8e3f5bc6
Commit
8e3f5bc6
authored
May 02, 2020
by
Marc Marí
Browse files
Simplify blendZero for ARM64
parent
5d755e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openmmapi/include/openmm/internal/vectorize_neon.h
openmmapi/include/openmm/internal/vectorize_neon.h
+1
-1
No files found.
openmmapi/include/openmm/internal/vectorize_neon.h
View file @
8e3f5bc6
...
@@ -427,7 +427,7 @@ static inline fvec4 blend(fvec4 v1, fvec4 v2, ivec4 mask) {
...
@@ -427,7 +427,7 @@ static inline fvec4 blend(fvec4 v1, fvec4 v2, ivec4 mask) {
}
}
static
inline
fvec4
blendZero
(
fvec4
v
,
ivec4
mask
)
{
static
inline
fvec4
blendZero
(
fvec4
v
,
ivec4
mask
)
{
return
blend
(
0.0
f
,
v
,
mask
);
return
vreinterpretq_f32_s32
(
vandq_s32
(
vreinterpretq_s32_f32
(
v
)
,
mask
)
)
;
}
}
static
inline
ivec4
blendZero
(
ivec4
v
,
ivec4
mask
)
{
static
inline
ivec4
blendZero
(
ivec4
v
,
ivec4
mask
)
{
...
...
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