Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pypocketfft
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Martin Reinecke
pypocketfft
Commits
cb72d602
Commit
cb72d602
authored
Aug 03, 2019
by
Peter Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use alias templates for vtype
parent
8a1d38e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
pocketfft_hdronly.h
pocketfft_hdronly.h
+8
-12
No files found.
pocketfft_hdronly.h
View file @
cb72d602
...
...
@@ -2812,6 +2812,8 @@ template<> struct VTYPE<long double>
{
using
type
=
long
double
__attribute__
((
vector_size
(
VLEN
<
long
double
>::
val
*
sizeof
(
long
double
))));
};
template
<
typename
T
>
using
vtype_t
=
typename
VTYPE
<
T
>::
type
;
#endif
template
<
typename
T
>
arr
<
char
>
alloc_tmp
(
const
shape_t
&
shape
,
...
...
@@ -2866,9 +2868,8 @@ template<typename T> POCKETFFT_NOINLINE void general_c(
if
(
vlen
>
1
)
while
(
it
.
remaining
()
>=
vlen
)
{
using
vtype
=
typename
VTYPE
<
T
>::
type
;
it
.
advance
(
vlen
);
auto
tdatav
=
reinterpret_cast
<
cmplx
<
vtype
>
*>
(
storage
.
data
());
auto
tdatav
=
reinterpret_cast
<
cmplx
<
vtype
_t
<
T
>
>
*>
(
storage
.
data
());
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
for
(
size_t
j
=
0
;
j
<
vlen
;
++
j
)
{
...
...
@@ -2924,9 +2925,8 @@ template<typename T> POCKETFFT_NOINLINE void general_hartley(
if
(
vlen
>
1
)
while
(
it
.
remaining
()
>=
vlen
)
{
using
vtype
=
typename
VTYPE
<
T
>::
type
;
it
.
advance
(
vlen
);
auto
tdatav
=
reinterpret_cast
<
vtype
*>
(
storage
.
data
());
auto
tdatav
=
reinterpret_cast
<
vtype
_t
<
T
>
*>
(
storage
.
data
());
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
for
(
size_t
j
=
0
;
j
<
vlen
;
++
j
)
tdatav
[
i
][
j
]
=
tin
[
it
.
iofs
(
j
,
i
)];
...
...
@@ -2992,9 +2992,8 @@ template<typename Trafo, typename T> POCKETFFT_NOINLINE void general_dcst(
if
(
vlen
>
1
)
while
(
it
.
remaining
()
>=
vlen
)
{
using
vtype
=
typename
VTYPE
<
T
>::
type
;
it
.
advance
(
vlen
);
auto
tdatav
=
reinterpret_cast
<
vtype
*>
(
storage
.
data
());
auto
tdatav
=
reinterpret_cast
<
vtype
_t
<
T
>
*>
(
storage
.
data
());
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
for
(
size_t
j
=
0
;
j
<
vlen
;
++
j
)
tdatav
[
i
][
j
]
=
tin
[
it
.
iofs
(
j
,
i
)];
...
...
@@ -3040,9 +3039,8 @@ template<typename T> POCKETFFT_NOINLINE void general_r2c(
if
(
vlen
>
1
)
while
(
it
.
remaining
()
>=
vlen
)
{
using
vtype
=
typename
VTYPE
<
T
>::
type
;
it
.
advance
(
vlen
);
auto
tdatav
=
reinterpret_cast
<
vtype
*>
(
storage
.
data
());
auto
tdatav
=
reinterpret_cast
<
vtype
_t
<
T
>
*>
(
storage
.
data
());
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
for
(
size_t
j
=
0
;
j
<
vlen
;
++
j
)
tdatav
[
i
][
j
]
=
in
[
it
.
iofs
(
j
,
i
)];
...
...
@@ -3100,9 +3098,8 @@ template<typename T> POCKETFFT_NOINLINE void general_c2r(
if
(
vlen
>
1
)
while
(
it
.
remaining
()
>=
vlen
)
{
using
vtype
=
typename
VTYPE
<
T
>::
type
;
it
.
advance
(
vlen
);
auto
tdatav
=
reinterpret_cast
<
vtype
*>
(
storage
.
data
());
auto
tdatav
=
reinterpret_cast
<
vtype
_t
<
T
>
*>
(
storage
.
data
());
for
(
size_t
j
=
0
;
j
<
vlen
;
++
j
)
tdatav
[
0
][
j
]
=
in
[
it
.
iofs
(
j
,
0
)].
r
;
{
...
...
@@ -3172,9 +3169,8 @@ template<typename T> POCKETFFT_NOINLINE void general_r(
if
(
vlen
>
1
)
while
(
it
.
remaining
()
>=
vlen
)
{
using
vtype
=
typename
VTYPE
<
T
>::
type
;
it
.
advance
(
vlen
);
auto
tdatav
=
reinterpret_cast
<
vtype
*>
(
storage
.
data
());
auto
tdatav
=
reinterpret_cast
<
vtype
_t
<
T
>
*>
(
storage
.
data
());
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
for
(
size_t
j
=
0
;
j
<
vlen
;
++
j
)
tdatav
[
i
][
j
]
=
tin
[
it
.
iofs
(
j
,
i
)];
...
...
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