Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simde
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
simde
Commits
7ca5a3e0
Commit
7ca5a3e0
authored
Jul 20, 2024
by
AlexK-BD
Committed by
GitHub
Jul 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/fma: Use 128 bit fnmadd_pd to do 256 bit fnmadd_pd (#1197)
parent
2ec1f51f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
x86/fma.h
x86/fma.h
+10
-5
No files found.
x86/fma.h
View file @
7ca5a3e0
...
@@ -464,11 +464,16 @@ simde_mm256_fnmadd_pd (simde__m256d a, simde__m256d b, simde__m256d c) {
...
@@ -464,11 +464,16 @@ simde_mm256_fnmadd_pd (simde__m256d a, simde__m256d b, simde__m256d c) {
b_
=
simde__m256d_to_private
(
b
),
b_
=
simde__m256d_to_private
(
b
),
c_
=
simde__m256d_to_private
(
c
);
c_
=
simde__m256d_to_private
(
c
);
#if SIMDE_NATURAL_VECTOR_SIZE_LE(128)
for
(
size_t
i
=
0
;
i
<
(
sizeof
(
r_
.
m128d
)
/
sizeof
(
r_
.
m128d
[
0
]))
;
i
++
)
{
r_
.
m128d
[
i
]
=
simde_mm_fnmadd_pd
(
a_
.
m128d
[
i
],
b_
.
m128d
[
i
],
c_
.
m128d
[
i
]);
}
#else
SIMDE_VECTORIZE
SIMDE_VECTORIZE
for
(
size_t
i
=
0
;
i
<
(
sizeof
(
r_
.
f64
)
/
sizeof
(
r_
.
f64
[
0
]))
;
i
++
)
{
for
(
size_t
i
=
0
;
i
<
(
sizeof
(
r_
.
f64
)
/
sizeof
(
r_
.
f64
[
0
]))
;
i
++
)
{
r_
.
f64
[
i
]
=
-
(
a_
.
f64
[
i
]
*
b_
.
f64
[
i
])
+
c_
.
f64
[
i
];
r_
.
f64
[
i
]
=
-
(
a_
.
f64
[
i
]
*
b_
.
f64
[
i
])
+
c_
.
f64
[
i
];
}
}
#endif
return
simde__m256d_from_private
(
r_
);
return
simde__m256d_from_private
(
r_
);
#endif
#endif
}
}
...
...
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