@@ -361,30 +361,32 @@ namespace xsimd
361361 // Running the detection here is less error prone than to add a fallback to all
362362 // architectures.
363363
364- template <class A , class B , class C , class = void >
364+ template <class Arch , class Batch , class BatchConstant , class = void >
365365 struct has_bitwise_lshift_batch_const : std::false_type
366366 {
367367 };
368368
369- template <class A , class B , class C >
370- struct has_bitwise_lshift_batch_const <A, B, C,
371- void_t <decltype (kernel::bitwise_lshift<A>(std::declval<B>(), std::declval<C>(), A {}))>>
369+ template <class Arch , class Batch , class BatchConstant >
370+ struct has_bitwise_lshift_batch_const <
371+ Arch, Batch, BatchConstant,
372+ void_t <decltype (kernel::bitwise_lshift<Arch>(
373+ std::declval<Batch>(), std::declval<BatchConstant>(), Arch {}))>>
372374 : std::true_type
373375 {
374376 };
375377
376- template <class A , class T , T... Values>
377- XSIMD_INLINE batch<T, A > bitwise_lshift_batch_const (batch<T, A > const & x, batch_constant<T, A , Values...> shift, std::true_type) noexcept
378+ template <class Arch , class T , T... Values>
379+ XSIMD_INLINE batch<T, Arch > bitwise_lshift_batch_const (batch<T, Arch > const & x, batch_constant<T, Arch , Values...> shift, std::true_type) noexcept
378380 {
379381 // Optimized ``batch_constant`` implementation
380- return kernel::bitwise_lshift<A >(x, shift, A {});
382+ return kernel::bitwise_lshift<Arch >(x, shift, Arch {});
381383 }
382384
383- template <class A , class T , T... Values>
384- XSIMD_INLINE batch<T, A > bitwise_lshift_batch_const (batch<T, A > const & x, batch_constant<T, A , Values...> shift, std::false_type) noexcept
385+ template <class Arch , class T , T... Values>
386+ XSIMD_INLINE batch<T, Arch > bitwise_lshift_batch_const (batch<T, Arch > const & x, batch_constant<T, Arch , Values...> shift, std::false_type) noexcept
385387 {
386388 // Fallback to regular run-time implementation
387- return kernel::bitwise_lshift<A >(x, shift.as_batch (), A {});
389+ return kernel::bitwise_lshift<Arch >(x, shift.as_batch (), Arch {});
388390 }
389391 }
390392
0 commit comments