mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 04:08:54 +02:00
ircd::simd: Additional distinguishing type trait constexpr.
This commit is contained in:
parent
b55d670af1
commit
cd2c6630bc
1 changed files with 12 additions and 0 deletions
|
@ -19,6 +19,12 @@ namespace ircd::simd
|
||||||
template<class V,
|
template<class V,
|
||||||
class U = lane_type<V>>
|
class U = lane_type<V>>
|
||||||
static constexpr size_t sizeof_lane() = delete;
|
static constexpr size_t sizeof_lane() = delete;
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
static constexpr bool is()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define IRCD_SIMD_TYPEVEC(_T_, _U_, _V_) \
|
#define IRCD_SIMD_TYPEVEC(_T_, _U_, _V_) \
|
||||||
|
@ -63,6 +69,12 @@ namespace ircd \
|
||||||
constexpr size_t sizeof_lane<_T_, _U_>() \
|
constexpr size_t sizeof_lane<_T_, _U_>() \
|
||||||
{ \
|
{ \
|
||||||
return sizeof(_U_); \
|
return sizeof(_U_); \
|
||||||
|
} \
|
||||||
|
\
|
||||||
|
template<> \
|
||||||
|
constexpr bool is<_T_>() \
|
||||||
|
{ \
|
||||||
|
return true; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Reference in a new issue