Skip to content

Commit

Permalink
Remove regular_type from some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou authored Mar 9, 2024
1 parent cdbabe6 commit 3f04131
Show file tree
Hide file tree
Showing 69 changed files with 1,116 additions and 1,584 deletions.
4 changes: 2 additions & 2 deletions benchmarks/module/math/acos/raw/acos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main()

eve::bench::experiment xp;
run<EVE_VALUE>(EVE_NAME(std__acos) , xp, std__acos , arg0);
run<EVE_VALUE>(EVE_NAME(raw(eve::acos)) , xp, eve::raw(eve::acos) , arg0);
run<EVE_TYPE> (EVE_NAME(raw(eve::acos)) , xp, eve::raw(eve::acos) , arg0);
run<EVE_VALUE>(EVE_NAME(raw(eve::acos)) , xp, eve::acos[eve::raw]) , arg0);
run<EVE_TYPE> (EVE_NAME(raw(eve::acos)) , xp, eve::acos[eve::raw]) , arg0);

}
4 changes: 2 additions & 2 deletions benchmarks/module/math/acosd/raw/acosd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main()

eve::bench::experiment xp;
run<EVE_VALUE>(EVE_NAME(std__acosd) , xp, std__acosd , arg0);
run<EVE_VALUE>(EVE_NAME(raw(eve::acosd)) , xp, eve::raw(eve::acosd) , arg0);
run<EVE_TYPE> (EVE_NAME(raw(eve::acosd)) , xp, eve::raw(eve::acosd) , arg0);
run<EVE_VALUE>(EVE_NAME(eve::acosd[eve::raw]) , xp, eve::acosd[eve::raw]) , arg0);
run<EVE_TYPE> (EVE_NAME(eve::acosd[eve::raw]) , xp, eve::acosd[eve::raw]) , arg0);

}
4 changes: 2 additions & 2 deletions benchmarks/module/math/acospi/raw/acospi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main()

eve::bench::experiment xp;
run<EVE_VALUE>(EVE_NAME(std__acospi) , xp, std__acospi , arg0);
run<EVE_VALUE>(EVE_NAME(raw(eve::acospi)) , xp, eve::raw(eve::acospi) , arg0);
run<EVE_TYPE> (EVE_NAME(raw(eve::acospi)) , xp, eve::raw(eve::acospi) , arg0);
run<EVE_VALUE>(EVE_NAME(eve::acospi[raw]) , xp, eve::acospi[eve::raw]) , arg0);
run<EVE_TYPE> (EVE_NAME(eve::acospi[raw]) , xp, eve::acospi[eve::raw]) , arg0);

}
4 changes: 2 additions & 2 deletions include/eve/detail/assert_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace eve::detail
{
template<typename A0, eve::value A1>
EVE_FORCEINLINE bool assert_good_shift(A1 const &t) noexcept
constexpr EVE_FORCEINLINE bool assert_good_shift(A1 const &t) noexcept
{
using v1_t = element_type_t<A1>;
constexpr v1_t Mx = sizeof(element_type_t<A0>) * 8;
Expand All @@ -30,7 +30,7 @@ namespace eve::detail
}

template<typename A0, typename U, U V>
EVE_FORCEINLINE bool assert_good_shift(std::integral_constant<U,V> const &t) noexcept
constexpr EVE_FORCEINLINE bool assert_good_shift(std::integral_constant<U,V> const &t) noexcept
{
constexpr U Mx = sizeof(element_type_t<A0>) * 8;

Expand Down
5 changes: 2 additions & 3 deletions include/eve/module/core/constant/minexponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct minexponent_t : constant_callable<minexponent_t, Options, downward_option, upward_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr auto value(eve::as<T> const&, auto const&)
{
using e_t = element_type_t<T>;
Expand All @@ -27,8 +27,7 @@ namespace eve
}

template<floating_value T>
requires(plain_scalar_value<element_type_t<T>>)
EVE_FORCEINLINE constexpr auto operator()(as<T> const& v) const { return EVE_DISPATCH_CALL(v); }
EVE_FORCEINLINE constexpr as_integer_t<T> operator()(as<T> const& v) const { return EVE_DISPATCH_CALL(v); }

EVE_CALLABLE_OBJECT(minexponent_t, minexponent_);
};
Expand Down
1 change: 0 additions & 1 deletion include/eve/module/core/numeric/impl/fma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <eve/detail/skeleton_calls.hpp>
#include <eve/module/core/decorator/numeric.hpp>
#include <eve/module/core/decorator/pedantic.hpp>
#include <eve/module/core/pedantic/ldexp.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/exponent.hpp>
#include <eve/module/core/regular/max.hpp>
Expand Down
1 change: 0 additions & 1 deletion include/eve/module/core/pedantic/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <eve/module/core/pedantic/fsnm.hpp>
#include <eve/module/core/pedantic/is_flint.hpp>
#include <eve/module/core/pedantic/is_not_flint.hpp>
#include <eve/module/core/pedantic/ldexp.hpp>
#include <eve/module/core/pedantic/lerp.hpp>
#include <eve/module/core/pedantic/manhattan.hpp>
#include <eve/module/core/pedantic/max.hpp>
Expand Down
119 changes: 0 additions & 119 deletions include/eve/module/core/pedantic/impl/ldexp.hpp

This file was deleted.

42 changes: 0 additions & 42 deletions include/eve/module/core/pedantic/impl/simd/x86/ldexp.hpp

This file was deleted.

29 changes: 0 additions & 29 deletions include/eve/module/core/pedantic/ldexp.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion include/eve/module/core/regular/abs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ template<typename Options>
struct abs_t : elementwise_callable<abs_t, Options, saturated_option>
{
template<eve::value T>
EVE_FORCEINLINE T operator()(T v) const { return EVE_DISPATCH_CALL(v); }
constexpr EVE_FORCEINLINE T operator()(T v) const { return EVE_DISPATCH_CALL(v); }

EVE_CALLABLE_OBJECT(abs_t, abs_);
};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/regular/impl/abs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
namespace eve::detail
{
template<ordered_value T, callable_options O>
T abs_(EVE_REQUIRES(cpu_), O const&, T const& v)
constexpr T abs_(EVE_REQUIRES(cpu_), O const&, T const& v)
{
if constexpr(O::contains(saturated2))
{
Expand Down
Loading

0 comments on commit 3f04131

Please sign in to comment.