Skip to content

Commit fc0ebb6

Browse files
Omit unused class name for template parameters
1 parent 75bcb78 commit fc0ebb6

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

include/xsimd/arch/common/xsimd_common_details.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ namespace xsimd
190190

191191
// Provide a common uint32_t -> float cast only if we have a
192192
// non-common int32_t -> float fast_cast
193-
template <class A, class _ = decltype(fast_cast(std::declval<batch<int32_t, A> const&>(), std::declval<batch<float, A> const&>(), A {}))>
193+
template <class A, class = decltype(fast_cast(std::declval<batch<int32_t, A> const&>(), std::declval<batch<float, A> const&>(), A {}))>
194194
XSIMD_INLINE batch<float, A> fast_cast(batch<uint32_t, A> const& v, batch<float, A> const&, requires_arch<common>) noexcept
195195
{
196196
// see https://stackoverflow.com/questions/34066228/how-to-perform-uint32-float-conversion-with-sse
@@ -207,7 +207,7 @@ namespace xsimd
207207

208208
// Provide a common float -> uint32_t cast only if we have a
209209
// non-common float -> int32_t fast_cast
210-
template <class A, class _ = decltype(fast_cast(std::declval<batch<float, A> const&>(), std::declval<batch<int32_t, A> const&>(), A {}))>
210+
template <class A, class = decltype(fast_cast(std::declval<batch<float, A> const&>(), std::declval<batch<int32_t, A> const&>(), A {}))>
211211
XSIMD_INLINE batch<uint32_t, A> fast_cast(batch<float, A> const& v, batch<uint32_t, A> const&, requires_arch<common>) noexcept
212212
{
213213
auto is_large = v >= batch<float, A>(1u << 31);

include/xsimd/arch/common/xsimd_common_math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ namespace xsimd
286286
}
287287

288288
// copysign
289-
template <class A, class T, class _ = typename std::enable_if<std::is_floating_point<T>::value>::type>
289+
template <class A, class T, class = typename std::enable_if<std::is_floating_point<T>::value>::type>
290290
XSIMD_INLINE batch<T, A> copysign(batch<T, A> const& self, batch<T, A> const& other, requires_arch<common>) noexcept
291291
{
292292
return abs(self) | bitofsign(other);

include/xsimd/arch/xsimd_avx.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ namespace xsimd
10561056
}
10571057

10581058
// reduce_max
1059-
template <class A, class T, class _ = typename std::enable_if<(sizeof(T) <= 2)>::type>
1059+
template <class A, class T, class = typename std::enable_if<(sizeof(T) <= 2)>::type>
10601060
XSIMD_INLINE T reduce_max(batch<T, A> const& self, requires_arch<avx>) noexcept
10611061
{
10621062
constexpr auto mask = detail::shuffle(1, 0);
@@ -1067,7 +1067,7 @@ namespace xsimd
10671067
}
10681068

10691069
// reduce_min
1070-
template <class A, class T, class _ = typename std::enable_if<(sizeof(T) <= 2)>::type>
1070+
template <class A, class T, class = typename std::enable_if<(sizeof(T) <= 2)>::type>
10711071
XSIMD_INLINE T reduce_min(batch<T, A> const& self, requires_arch<avx>) noexcept
10721072
{
10731073
constexpr auto mask = detail::shuffle(1, 0);

include/xsimd/arch/xsimd_avx512f.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ namespace xsimd
16311631
}
16321632

16331633
// reduce_max
1634-
template <class A, class T, class _ = typename std::enable_if<(sizeof(T) == 1)>::type>
1634+
template <class A, class T, class = typename std::enable_if<(sizeof(T) == 1)>::type>
16351635
XSIMD_INLINE T reduce_max(batch<T, A> const& self, requires_arch<avx512f>) noexcept
16361636
{
16371637
constexpr batch_constant<uint64_t, A, 5, 6, 7, 8, 0, 0, 0, 0> mask;
@@ -1642,7 +1642,7 @@ namespace xsimd
16421642
}
16431643

16441644
// reduce_min
1645-
template <class A, class T, class _ = typename std::enable_if<(sizeof(T) == 1)>::type>
1645+
template <class A, class T, class = typename std::enable_if<(sizeof(T) == 1)>::type>
16461646
XSIMD_INLINE T reduce_min(batch<T, A> const& self, requires_arch<avx512f>) noexcept
16471647
{
16481648
constexpr batch_constant<uint64_t, A, 5, 6, 7, 8, 0, 0, 0, 0> mask;
@@ -2350,7 +2350,7 @@ namespace xsimd
23502350

23512351
}
23522352

2353-
template <class A, uint16_t... Idx, class _ = typename std::enable_if<detail::is_pair_of_contiguous_indices<uint16_t, A, Idx...>::value>::type>
2353+
template <class A, uint16_t... Idx, class = typename std::enable_if<detail::is_pair_of_contiguous_indices<uint16_t, A, Idx...>::value>::type>
23542354
XSIMD_INLINE batch<uint16_t, A> swizzle(batch<uint16_t, A> const& self, batch_constant<uint16_t, A, Idx...>, requires_arch<avx512f>) noexcept
23552355
{
23562356
constexpr typename detail::fold_batch_constant<A, Idx...>::type mask32;

include/xsimd/arch/xsimd_scalar.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ namespace xsimd
12241224
}
12251225
#endif
12261226

1227-
template <class T, class _ = typename std::enable_if<std::is_floating_point<T>::value>::type>
1227+
template <class T, class = typename std::enable_if<std::is_floating_point<T>::value>::type>
12281228
XSIMD_INLINE T frexp(T const& val, int& exp) noexcept
12291229
{
12301230
return std::frexp(val, &exp);

include/xsimd/arch/xsimd_sse2.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ namespace xsimd
14081408
}
14091409

14101410
// reduce_max
1411-
template <class A, class T, class _ = typename std::enable_if<(sizeof(T) <= 2)>::type>
1411+
template <class A, class T, class = typename std::enable_if<(sizeof(T) <= 2)>::type>
14121412
XSIMD_INLINE T reduce_max(batch<T, A> const& self, requires_arch<sse2>) noexcept
14131413
{
14141414
constexpr auto mask0 = detail::shuffle(2, 3, 0, 0);
@@ -1430,7 +1430,7 @@ namespace xsimd
14301430
}
14311431

14321432
// reduce_min
1433-
template <class A, class T, class _ = typename std::enable_if<(sizeof(T) <= 2)>::type>
1433+
template <class A, class T, class = typename std::enable_if<(sizeof(T) <= 2)>::type>
14341434
XSIMD_INLINE T reduce_min(batch<T, A> const& self, requires_arch<sse2>) noexcept
14351435
{
14361436
constexpr auto mask0 = detail::shuffle(2, 3, 0, 0);

include/xsimd/arch/xsimd_ssse3.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace xsimd
7474
}
7575
}
7676

77-
template <class A, class T, class _ = typename std::enable_if<std::is_integral<T>::value>::type>
77+
template <class A, class T, class = typename std::enable_if<std::is_integral<T>::value>::type>
7878
XSIMD_INLINE batch<T, A> extract_pair(batch<T, A> const& self, batch<T, A> const& other, std::size_t i, requires_arch<ssse3>) noexcept
7979
{
8080
constexpr std::size_t size = batch<T, A>::size;

0 commit comments

Comments
 (0)