@@ -81,43 +81,6 @@ namespace xsimd
8181 template <class T >
8282 using revert_simd_type = typename revert_simd_traits<T>::type;
8383
84-
85- // TODO: we have a problem here since the specialization for
86- // batch<xtl::xcomplex<T, T, i3ec>> does not exit anymore
87- /* #ifdef XSIMD_ENABLE_XTL_COMPLEX
88- template <bool i3ec>
89- struct simd_traits<xtl::xcomplex<float, float, i3ec>>
90- {
91- using type = batch<xtl::xcomplex<float, float, i3ec>, XSIMD_BATCH_FLOAT_SIZE>;
92- using bool_type = typename simd_batch_traits<type>::batch_bool_type;
93- static constexpr size_t size = type::size;
94- };
95-
96- template <bool i3ec>
97- struct revert_simd_traits<batch<xtl::xcomplex<float, float, i3ec>, XSIMD_BATCH_FLOAT_SIZE>>
98- {
99- using type = xtl::xcomplex<float, float, i3ec>;
100- static constexpr size_t size = simd_traits<type>::size;
101- };
102- #endif // XSIMD_ENABLE_XTL_COMPLEX
103- */
104- /* #ifdef XSIMD_ENABLE_XTL_COMPLEX
105- template <bool i3ec>
106- struct simd_traits<xtl::xcomplex<double, double, i3ec>>
107- {
108- using type = batch<xtl::xcomplex<double, double, i3ec>, XSIMD_BATCH_DOUBLE_SIZE>;
109- using bool_type = typename simd_batch_traits<type>::batch_bool_type;
110- static constexpr size_t size = type::size;
111- };
112-
113- template <bool i3ec>
114- struct revert_simd_traits<batch<xtl::xcomplex<double, double, i3ec>, XSIMD_BATCH_DOUBLE_SIZE>>
115- {
116- using type = xtl::xcomplex<double, double, i3ec>;
117- static constexpr size_t size = simd_traits<type>::size;
118- };
119- #endif // XSIMD_ENABLE_XTL_COMPLEX*/
120-
12184 /* *******************
12285 * simd_return_type *
12386 ********************/
@@ -174,20 +137,6 @@ namespace xsimd
174137 : std::enable_if<simd_condition<T1, T2>::value, batch<std::complex <T2>, A>>
175138 {
176139 };
177-
178- /* #ifdef XSIMD_ENABLE_XTL_COMPLEX
179- template <class T1, bool i3ec, class T2, std::size_t N>
180- struct simd_return_type_impl<xtl::xcomplex<T1, T1, i3ec>, T2, N>
181- : std::enable_if<simd_condition<T1, T2>::value, batch<xtl::xcomplex<T2, T2, i3ec>, N>>
182- {
183- };
184-
185- template <class T1, class T2, bool i3ec, std::size_t N>
186- struct simd_return_type_impl<xtl::xcomplex<T1, T1, i3ec>, xtl::xcomplex<T2, T2, i3ec>, N>
187- : std::enable_if<simd_condition<T1, T2>::value, batch<xtl::xcomplex<T2, T2, i3ec>, N>>
188- {
189- };
190- #endif // XSIMD_ENABLE_XTL_COMPLEX*/
191140 }
192141
193142 template <class T1 , class T2 , class A = default_arch>
@@ -234,14 +183,6 @@ namespace xsimd
234183 struct is_batch_complex <batch<std::complex <T>, A>> : std::true_type
235184 {
236185 };
237- /*
238- #ifdef XSIMD_ENABLE_XTL_COMPLEX
239- template <class T, bool i3ec, std::size_t N>
240- struct is_batch_complex<batch<xtl::xcomplex<T, T, i3ec>, N>> : std::true_type
241- {
242- };
243- #endif //XSIMD_ENABLE_XTL_COMPLEX*/
244-
245186}
246187
247188#endif
0 commit comments