Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
Simon Perkins
ducc
Commits
2aa3f9c7
Commit
2aa3f9c7
authored
Feb 24, 2020
by
Martin Reinecke
Browse files
template tweaks
parent
485bb50d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mr_util/infra/simd.h
View file @
2aa3f9c7
...
...
@@ -53,16 +53,16 @@ namespace mr {
namespace
detail_simd
{
template
<
typename
T
>
constexpr
static
const
bool
vectorizable
=
false
;
template
<
>
constexpr
static
const
bool
vectorizable
<
float
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
double
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
int8_t
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
uint8_t
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
int16_t
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
uint16_t
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
int32_t
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
uint32_t
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
int64_t
>
=
true
;
template
<
>
constexpr
static
const
bool
vectorizable
<
uint64_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
float
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
double
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
int8_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
uint8_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
int16_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
uint16_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
int32_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
uint32_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
int64_t
>
=
true
;
template
<
>
constexpr
bool
vectorizable
<
uint64_t
>
=
true
;
template
<
typename
T
,
size_t
reglen
>
constexpr
size_t
vlen
=
vectorizable
<
T
>
?
reglen
/
sizeof
(
T
)
:
1
;
...
...
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