Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Eigen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Eigen
Commits
a475bf14
Commit
a475bf14
authored
5 years ago
by
Pedro Caldeira
Committed by
Pedro Henrique Moreira Caldeira
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix pscatter and pgather for Altivec Complex double
parent
c6c84ed9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Eigen/src/Core/arch/AltiVec/Complex.h
+4
-10
4 additions, 10 deletions
Eigen/src/Core/arch/AltiVec/Complex.h
with
4 additions
and
10 deletions
Eigen/src/Core/arch/AltiVec/Complex.h
+
4
−
10
View file @
a475bf14
...
...
@@ -269,19 +269,13 @@ template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<double> >(std::complex<
template
<
>
EIGEN_STRONG_INLINE
Packet1cd
pset1
<
Packet1cd
>
(
const
std
::
complex
<
double
>&
from
)
{
/* here we really have to use unaligned loads :( */
return
ploadu
<
Packet1cd
>
(
&
from
);
}
template
<
>
EIGEN_DEVICE_FUNC
inline
Packet1cd
pgather
<
std
::
complex
<
double
>
,
Packet1cd
>
(
const
std
::
complex
<
double
>*
from
,
Index
stride
)
template
<
>
EIGEN_DEVICE_FUNC
inline
Packet1cd
pgather
<
std
::
complex
<
double
>
,
Packet1cd
>
(
const
std
::
complex
<
double
>*
from
,
Index
)
{
EIGEN_ALIGN16
std
::
complex
<
double
>
af
[
2
];
af
[
0
]
=
from
[
0
*
stride
];
af
[
1
]
=
from
[
1
*
stride
];
return
pload
<
Packet1cd
>
(
af
);
return
pload
<
Packet1cd
>
(
from
);
}
template
<
>
EIGEN_DEVICE_FUNC
inline
void
pscatter
<
std
::
complex
<
double
>
,
Packet1cd
>
(
std
::
complex
<
double
>*
to
,
const
Packet1cd
&
from
,
Index
stride
)
template
<
>
EIGEN_DEVICE_FUNC
inline
void
pscatter
<
std
::
complex
<
double
>
,
Packet1cd
>
(
std
::
complex
<
double
>*
to
,
const
Packet1cd
&
from
,
Index
)
{
EIGEN_ALIGN16
std
::
complex
<
double
>
af
[
2
];
pstore
<
std
::
complex
<
double
>
>
(
af
,
from
);
to
[
0
*
stride
]
=
af
[
0
];
to
[
1
*
stride
]
=
af
[
1
];
pstore
<
std
::
complex
<
double
>
>
(
to
,
from
);
}
template
<
>
EIGEN_STRONG_INLINE
Packet1cd
padd
<
Packet1cd
>
(
const
Packet1cd
&
a
,
const
Packet1cd
&
b
)
{
return
Packet1cd
(
a
.
v
+
b
.
v
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment