From cd2c6630bc5d5cfedf71e3edc37ad93cc3718774 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 2 Mar 2021 09:57:29 -0800 Subject: [PATCH] ircd::simd: Additional distinguishing type trait constexpr. --- include/ircd/simd/type.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/ircd/simd/type.h b/include/ircd/simd/type.h index fcc32b16e..39fab3019 100644 --- a/include/ircd/simd/type.h +++ b/include/ircd/simd/type.h @@ -19,6 +19,12 @@ namespace ircd::simd template> static constexpr size_t sizeof_lane() = delete; + + template + 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; \ } \ } \ \