Skip to content

Commit

Permalink
removed unused apply_over variant
Browse files Browse the repository at this point in the history
  • Loading branch information
SadiinsoSnowfall committed Jan 27, 2025
1 parent 9917195 commit 66351d8
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions include/eve/detail/apply_over.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,14 @@

namespace eve::detail
{
// -----------------------------------------------------------------------------------------------
// N parameters apply_over
template<typename Obj, value T0, value ... T>
EVE_FORCEINLINE auto apply_over(Obj f
, T0 const & arg0
, T const &... args ) noexcept
EVE_FORCEINLINE auto apply_over(Obj f, T0 const & arg0, T const &... args) noexcept
requires simd_value<T0> || (simd_value<T> || ...)
{
constexpr bool any_aggregated = has_aggregated_abi_v<T0> || (has_aggregated_abi_v<T> || ...);
constexpr bool any_emulated = has_emulated_abi_v<T0> || (has_emulated_abi_v<T> || ...);
if constexpr(any_aggregated) return aggregate(f, arg0, args...);
if constexpr(any_aggregated) return aggregate(f, arg0, args...);
else if constexpr(any_emulated) return map(f, arg0, args...);
else return f(arg0, args...);

}

template<typename Obj, simd_value T>
EVE_FORCEINLINE auto apply_over(Obj f, T const & v)
{
if constexpr(has_aggregated_abi_v<T>) return aggregate(f, v);
else if constexpr(has_emulated_abi_v<T>) return map(f, v);
else return f(v);
}
}

0 comments on commit 66351d8

Please sign in to comment.