Skip to content

Commit 7080469

Browse files
Obsolete the version() method from register description
Fix #1007
1 parent 1d8536b commit 7080469

31 files changed

+1
-66
lines changed

include/xsimd/config/xsimd_arch.hpp

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ namespace xsimd
3333
{
3434
static constexpr bool supported() noexcept { return false; }
3535
static constexpr bool available() noexcept { return false; }
36-
static constexpr unsigned version() noexcept { return 0; }
3736
static constexpr std::size_t alignment() noexcept { return 0; }
3837
static constexpr bool requires_alignment() noexcept { return false; }
3938
static constexpr char const* name() noexcept { return "<none>"; }
@@ -57,26 +56,6 @@ namespace xsimd
5756
{
5857
};
5958

60-
template <unsigned... Vals>
61-
struct is_sorted;
62-
63-
template <>
64-
struct is_sorted<> : std::true_type
65-
{
66-
};
67-
68-
template <unsigned Val>
69-
struct is_sorted<Val> : std::true_type
70-
{
71-
};
72-
73-
template <unsigned V0, unsigned V1, unsigned... Vals>
74-
struct is_sorted<V0, V1, Vals...>
75-
: std::conditional<(V0 >= V1), is_sorted<V1, Vals...>,
76-
std::false_type>::type
77-
{
78-
};
79-
8059
template <typename T>
8160
inline constexpr T max_of(T value) noexcept
8261
{
@@ -106,15 +85,10 @@ namespace xsimd
10685

10786
} // namespace detail
10887

109-
// An arch_list is a list of architectures, sorted by version number.
88+
// An arch_list is a list of architectures.
11089
template <class... Archs>
11190
struct arch_list
11291
{
113-
#ifndef NDEBUG
114-
static_assert(detail::is_sorted<Archs::version()...>::value,
115-
"architecture list must be sorted by version");
116-
#endif
117-
11892
using best = typename detail::head<Archs...>::type;
11993

12094
template <class Arch>

include/xsimd/types/xsimd_avx2_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ namespace xsimd
2525
{
2626
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX2; }
2727
static constexpr bool available() noexcept { return true; }
28-
static constexpr unsigned version() noexcept { return generic::version(2, 2, 0); }
2928
static constexpr char const* name() noexcept { return "avx2"; }
3029
};
3130

include/xsimd/types/xsimd_avx512bw_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512BW; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 4, 0); }
3029
static constexpr char const* name() noexcept { return "avx512bw"; }
3130
};
3231

include/xsimd/types/xsimd_avx512cd_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512CD; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 2, 0); }
3029
static constexpr char const* name() noexcept { return "avx512cd"; }
3130
};
3231

include/xsimd/types/xsimd_avx512dq_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512DQ; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 3, 0); }
3029
static constexpr char const* name() noexcept { return "avx512dq"; }
3130
};
3231

include/xsimd/types/xsimd_avx512er_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512ER; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 3, 1); }
3029
static constexpr char const* name() noexcept { return "avx512er"; }
3130
};
3231

include/xsimd/types/xsimd_avx512f_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512F; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 1, 0); }
3029
static constexpr std::size_t alignment() noexcept { return 64; }
3130
static constexpr bool requires_alignment() noexcept { return true; }
3231
static constexpr char const* name() noexcept { return "avx512f"; }

include/xsimd/types/xsimd_avx512ifma_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512IFMA; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 5, 0); }
3029
static constexpr char const* name() noexcept { return "avx512ifma"; }
3130
};
3231

include/xsimd/types/xsimd_avx512pf_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512PF; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 4, 1); }
3029
static constexpr char const* name() noexcept { return "avx512pf"; }
3130
};
3231

include/xsimd/types/xsimd_avx512vbmi_register.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace xsimd
2626
{
2727
static constexpr bool supported() noexcept { return XSIMD_WITH_AVX512VBMI; }
2828
static constexpr bool available() noexcept { return true; }
29-
static constexpr unsigned version() noexcept { return generic::version(3, 6, 0); }
3029
static constexpr char const* name() noexcept { return "avx512vbmi"; }
3130
};
3231

0 commit comments

Comments
 (0)