Skip to content

Commit d9dd5a9

Browse files
committed
Delete pre 201703L code
1 parent 5491a13 commit d9dd5a9

3 files changed

Lines changed: 0 additions & 74 deletions

File tree

include/xsimd/config/xsimd_cpu_features_x86.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
#include <cstdint>
1818
#include <cstring>
1919
#include <type_traits>
20-
#if XSIMD_CPP_VERSION >= 201703L
2120
#include <string_view>
22-
#endif
2321

2422
#include "../utils/bits.hpp"
2523
#include "./xsimd_config.hpp"
@@ -249,12 +247,10 @@ namespace xsimd
249247
return m_manufacturer_id;
250248
}
251249

252-
#if XSIMD_CPP_VERSION >= 201703L
253250
constexpr std::string_view manufacturer_id() const noexcept
254251
{
255252
return { m_manufacturer_id.data(), m_manufacturer_id.size() };
256253
}
257-
#endif
258254

259255
private:
260256
manufacturer_str m_manufacturer_id {};
@@ -835,12 +831,10 @@ namespace xsimd
835831
return leaf0().manufacturer_id_raw();
836832
}
837833

838-
#if XSIMD_CPP_VERSION >= 201703L
839834
inline std::string_view manufacturer_id() const noexcept
840835
{
841836
return leaf0().manufacturer_id();
842837
}
843-
#endif
844838

845839
/** The manufacturer ID string parsed into known common vendors. */
846840
inline x86_manufacturer known_manufacturer() const noexcept

include/xsimd/types/xsimd_batch.hpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,6 @@ namespace xsimd
415415
XSIMD_INLINE batch logical_or(batch const& other) const noexcept;
416416
};
417417

418-
#if XSIMD_CPP_VERSION < 201703L
419-
template <class T, class A>
420-
constexpr std::size_t batch<T, A>::size;
421-
#endif
422-
423418
/**
424419
* @brief batch of predicate over scalar or complex values.
425420
*
@@ -497,11 +492,6 @@ namespace xsimd
497492
static XSIMD_INLINE register_type make_register(std::index_sequence<>, V... v) noexcept;
498493
};
499494

500-
#if XSIMD_CPP_VERSION < 201703L
501-
template <class T, class A>
502-
constexpr std::size_t batch_bool<T, A>::size;
503-
#endif
504-
505495
/**
506496
* @brief batch of complex values.
507497
*
@@ -643,11 +633,6 @@ namespace xsimd
643633
real_batch m_imag;
644634
};
645635

646-
#if XSIMD_CPP_VERSION < 201703L
647-
template <class T, class A>
648-
constexpr std::size_t batch<std::complex<T>, A>::size;
649-
#endif
650-
651636
#ifdef XSIMD_ENABLE_XTL_COMPLEX
652637
template <typename T, bool i3ec, typename A>
653638
struct batch<xtl::xcomplex<T, T, i3ec>, A>

include/xsimd/types/xsimd_traits.hpp

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ namespace xsimd
6464
static constexpr size_t size = 1;
6565
};
6666

67-
#if XSIMD_CPP_VERSION < 201703L
68-
template <class T>
69-
constexpr size_t simd_traits_impl<T, false>::size;
70-
#endif
71-
7267
template <class T>
7368
struct simd_traits_impl<T, true>
7469
{
@@ -77,11 +72,6 @@ namespace xsimd
7772
static constexpr size_t size = type::size;
7873
};
7974

80-
#if XSIMD_CPP_VERSION < 201703L
81-
template <class T>
82-
constexpr size_t simd_traits_impl<T, true>::size;
83-
#endif
84-
8575
template <class T, class A>
8676
struct static_check_supported_config_emitter
8777
{
@@ -143,23 +133,13 @@ namespace xsimd
143133
static constexpr size_t size = simd_traits<type>::size;
144134
};
145135

146-
#if XSIMD_CPP_VERSION < 201703L
147-
template <class T>
148-
constexpr size_t revert_simd_traits<T>::size;
149-
#endif
150-
151136
template <class T>
152137
struct revert_simd_traits<batch<T>>
153138
{
154139
using type = T;
155140
static constexpr size_t size = batch<T>::size;
156141
};
157142

158-
#if XSIMD_CPP_VERSION < 201703L
159-
template <class T>
160-
constexpr size_t revert_simd_traits<batch<T>>::size;
161-
#endif
162-
163143
template <class T>
164144
using simd_type = typename simd_traits<T>::type;
165145

@@ -264,17 +244,6 @@ namespace xsimd
264244
static constexpr bool is_complex = detail::is_complex_v<T>; ///< True if T is complex or a batch of complex values.
265245
};
266246

267-
#if XSIMD_CPP_VERSION < 201703L
268-
template <class T>
269-
constexpr bool batch_traits<T>::is_batch;
270-
template <class T>
271-
constexpr bool batch_traits<T>::is_batch_bool;
272-
template <class T>
273-
constexpr bool batch_traits<T>::is_any_batch;
274-
template <class T>
275-
constexpr bool batch_traits<T>::is_complex;
276-
#endif
277-
278247
template <class T, class A>
279248
struct batch_traits<batch<T, A>>
280249
{
@@ -287,17 +256,6 @@ namespace xsimd
287256
static constexpr bool is_complex = detail::is_complex_v<T>;
288257
};
289258

290-
#if XSIMD_CPP_VERSION < 201703L
291-
template <class T, class A>
292-
constexpr bool batch_traits<batch<T, A>>::is_batch;
293-
template <class T, class A>
294-
constexpr bool batch_traits<batch<T, A>>::is_batch_bool;
295-
template <class T, class A>
296-
constexpr bool batch_traits<batch<T, A>>::is_any_batch;
297-
template <class T, class A>
298-
constexpr bool batch_traits<batch<T, A>>::is_complex;
299-
#endif
300-
301259
template <class T, class A>
302260
struct batch_traits<batch_bool<T, A>>
303261
{
@@ -310,17 +268,6 @@ namespace xsimd
310268
static constexpr bool is_complex = false;
311269
};
312270

313-
#if XSIMD_CPP_VERSION < 201703L
314-
template <class T, class A>
315-
constexpr bool batch_traits<batch_bool<T, A>>::is_batch;
316-
template <class T, class A>
317-
constexpr bool batch_traits<batch_bool<T, A>>::is_batch_bool;
318-
template <class T, class A>
319-
constexpr bool batch_traits<batch_bool<T, A>>::is_any_batch;
320-
template <class T, class A>
321-
constexpr bool batch_traits<batch_bool<T, A>>::is_complex;
322-
#endif
323-
324271
/**
325272
* @ingroup batch_traits
326273
*

0 commit comments

Comments
 (0)