Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
ducc
Commits
6d68d971
Commit
6d68d971
authored
Jan 07, 2020
by
Martin Reinecke
Browse files
use native_simd
parent
f4ad8895
Changes
1
Hide whitespace changes
Inline
Side-by-side
mr_util/fft.h
View file @
6d68d971
...
...
@@ -92,8 +92,8 @@ constexpr bool FORWARD = true,
template
<
typename
T
>
struct
VLEN
{
static
constexpr
size_t
val
=
1
;
};
#ifndef MRUTIL_NO_VECTORS
template
<
>
struct
VLEN
<
float
>
{
static
constexpr
size_t
val
=
simd
<
float
>::
size
();
};
template
<
>
struct
VLEN
<
double
>
{
static
constexpr
size_t
val
=
simd
<
double
>::
size
();
};
template
<
>
struct
VLEN
<
float
>
{
static
constexpr
size_t
val
=
native_
simd
<
float
>::
size
();
};
template
<
>
struct
VLEN
<
double
>
{
static
constexpr
size_t
val
=
native_
simd
<
double
>::
size
();
};
#endif
template
<
typename
T
>
inline
void
PM
(
T
&
a
,
T
&
b
,
T
c
,
T
d
)
...
...
@@ -2490,15 +2490,15 @@ template <typename T> using vtype_t = typename VTYPE<T>::type;
#ifndef POCKETFFT_NO_VECTORS
template
<
>
struct
VTYPE
<
float
>
{
using
type
=
simd
<
float
>
;
using
type
=
native_
simd
<
float
>
;
};
template
<
>
struct
VTYPE
<
double
>
{
using
type
=
simd
<
double
>
;
using
type
=
native_
simd
<
double
>
;
};
template
<
>
struct
VTYPE
<
long
double
>
{
using
type
=
simd
<
long
double
,
simd_abi
::
fixed_size
<
1
>>
;
using
type
=
simd
<
long
double
,
simd_abi
::
fixed_size
<
1
>>
;
};
#endif
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment