0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01:00

ircd::simd: Additional distinguishing type trait constexpr.

This commit is contained in:
Jason Volk 2021-03-02 09:57:29 -08:00
parent b55d670af1
commit cd2c6630bc

View file

@ -19,6 +19,12 @@ namespace ircd::simd
template<class V,
class U = lane_type<V>>
static constexpr size_t sizeof_lane() = delete;
template<class T>
static constexpr bool is()
{
return false;
}
}
#define IRCD_SIMD_TYPEVEC(_T_, _U_, _V_) \
@ -63,6 +69,12 @@ namespace ircd \
constexpr size_t sizeof_lane<_T_, _U_>() \
{ \
return sizeof(_U_); \
} \
\
template<> \
constexpr bool is<_T_>() \
{ \
return true; \
} \
} \
\