Skip to content

Commit

Permalink
Cleanup usage of <saturated/abs.hpp>
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou committed Dec 13, 2023
1 parent d96bab4 commit 2ec4389
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 21 deletions.
1 change: 0 additions & 1 deletion include/eve/module/core/pedantic/impl/absmax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/is_nan.hpp>
#include <eve/module/core/regular/is_not_greater_equal.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
1 change: 0 additions & 1 deletion include/eve/module/core/pedantic/impl/absmin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/is_nan.hpp>
#include <eve/module/core/regular/is_not_greater_equal.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/pedantic/impl/maxmag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <eve/module/core/regular/if_else.hpp>
#include <eve/module/core/regular/is_nan.hpp>
#include <eve/module/core/regular/is_not_greater_equal.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/pedantic/impl/minmag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <eve/module/core/regular/if_else.hpp>
#include <eve/module/core/regular/is_nan.hpp>
#include <eve/module/core/regular/is_not_greater_equal.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/pedantic/impl/negabsmax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <eve/module/core/decorator/pedantic.hpp>
#include <eve/module/core/pedantic/absmax.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/pedantic/impl/negabsmin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <eve/module/core/decorator/pedantic.hpp>
#include <eve/module/core/pedantic/absmin.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/pedantic/impl/negmaxabs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <eve/module/core/decorator/pedantic.hpp>
#include <eve/module/core/pedantic/maxabs.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/pedantic/impl/negminabs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <eve/module/core/decorator/pedantic.hpp>
#include <eve/module/core/pedantic/minabs.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>
#include <eve/arch/platform.hpp>

#include <type_traits>
Expand Down
1 change: 0 additions & 1 deletion include/eve/module/core/regular/impl/rat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <eve/module/core/regular/rec.hpp>
#include <eve/module/core/regular/round.hpp>
#include <eve/module/core/regular/sign.hpp>
#include <eve/module/core/saturated/abs.hpp>

namespace eve::detail
{
Expand Down
6 changes: 3 additions & 3 deletions include/eve/module/core/saturated/impl/absmax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <eve/module/core/decorator/saturated.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/max.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand All @@ -34,7 +34,7 @@ absmax_(EVE_SUPPORTS(cpu_),
T const& a,
T const& b) noexcept requires has_native_abi_v<T>
{
return saturated(eve::abs)(eve::max(a, b));
return eve::abs[saturated](eve::max(a, b));
}

//================================================================================================
Expand All @@ -45,6 +45,6 @@ auto
absmax_(EVE_SUPPORTS(cpu_), saturated_type const&, T0 a0, T1 a1, Ts... args) noexcept
-> decltype(absmax(a0, a1, args...))
{
return saturated(eve::abs)(eve::max(a0, a1, args...));
return eve::abs[saturated](eve::max(a0, a1, args...));
}
}
2 changes: 1 addition & 1 deletion include/eve/module/core/saturated/impl/absmin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <eve/module/core/decorator/saturated.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/min.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/saturated/impl/maxabs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <eve/module/core/decorator/saturated.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/max.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/saturated/impl/maxmag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <eve/module/core/regular/if_else.hpp>
#include <eve/module/core/regular/is_not_greater_equal.hpp>
#include <eve/module/core/regular/max.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/saturated/impl/minabs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <eve/module/core/decorator/saturated.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/min.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand Down
4 changes: 2 additions & 2 deletions include/eve/module/core/saturated/impl/minmag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <eve/module/core/regular/is_nan.hpp>
#include <eve/module/core/regular/is_not_greater_equal.hpp>
#include <eve/module/core/regular/min.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand All @@ -26,7 +26,7 @@ EVE_FORCEINLINE auto
minmag_(EVE_SUPPORTS(cpu_),
saturated_type const&,
T const& a,
U const& b) noexcept
U const& b) noexcept
-> decltype(maxabs(a, b))
{
return arithmetic_call(saturated(minmag), a, b);
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/saturated/impl/negabsmax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <eve/module/core/decorator/saturated.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/max.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/saturated/impl/negabsmin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <eve/module/core/decorator/saturated.hpp>
#include <eve/module/core/regular/all.hpp>
#include <eve/module/core/regular/min.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/saturated/impl/sqr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <eve/module/core/regular/if_else.hpp>
#include <eve/module/core/regular/is_greater.hpp>
#include <eve/module/core/regular/max.hpp>
#include <eve/module/core/saturated/abs.hpp>
#include <eve/module/core/regular/abs.hpp>

namespace eve::detail
{
Expand Down

0 comments on commit 2ec4389

Please sign in to comment.