Skip to content

Commit

Permalink
revert: constant callable concept guard
Browse files Browse the repository at this point in the history
  • Loading branch information
SadiinsoSnowfall committed Nov 23, 2024
1 parent 24b10cd commit b143360
Show file tree
Hide file tree
Showing 109 changed files with 112 additions and 112 deletions.
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/allbits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace eve
template<typename Options>
struct allbits_t : constant_callable<allbits_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::integral<T> ) return ~T{0};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/bitincrement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct bitincrement_t : constant_callable<bitincrement_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::integral<T> ) return T{1};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/eps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct eps_t : constant_callable<eps_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::integral<T> ) return T{1};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/exponentmask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct exponentmask_t : constant_callable<exponentmask_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr auto value(as<T>, auto const&)
{
using i_t = as_integer_t<T>;
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/half.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct half_t : constant_callable<half_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::same_as<T, float> ) return T{0x1p-1};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/inf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct inf_t : constant_callable<inf_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
return std::numeric_limits<T>::infinity();
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/logeps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct logeps_t : constant_callable<logeps_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float> ) return T{-0x1.fe2804p+3};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/mantissamask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct mantissamask_t : constant_callable<mantissamask_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr auto value(as<T>, auto const&)
{
using i_t = as_uinteger_t<T>;
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/maxexponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct maxexponent_t : constant_callable<maxexponent_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr auto value(as<T>, auto const&)
{
using i_t = as_integer_t<T>;
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/maxexponentm1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct maxexponentm1_t : constant_callable<maxexponentm1_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr auto value(as<T>, auto const&)
{
using i_t = as_integer_t<T>;
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/maxexponentp1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct maxexponentp1_t : constant_callable<maxexponentp1_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr auto value(as<T>, auto const&)
{
using i_t = as_integer_t<T>;
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/maxflint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct maxflint_t : constant_callable<maxflint_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::same_as<T, float> ) return T{0x1p+24};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/mhalf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct mhalf_t : constant_callable<mhalf_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::same_as<T, float> ) return T{-0x1p-1};
Expand Down
2 changes: 1 addition & 1 deletion 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, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr auto value(as<T>, auto const&)
{
using i_t = as_integer_t<T>;
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/minf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct minf_t : constant_callable<minf_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
return T{-std::numeric_limits<T>::infinity()};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/mone.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct mone_t : constant_callable<mone_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::unsigned_integral<element_type_t<T>>) return allbits(as<T>{});
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/mzero.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct mzero_t : constant_callable<mzero_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::integral<T> ) return T{0};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/nan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace eve
template<typename Options>
struct nan_t : constant_callable<nan_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
return allbits(as<T>{});
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/nbmantissabits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct nbmantissabits_t : constant_callable<nbmantissabits_t, Options, lower_option, upper_option>
{
template<floating_value T>
template<typename T>
static EVE_FORCEINLINE constexpr as_integer_t<T> value(as<T>, auto const&)
{
using i_t = as_integer_t<T>;
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/oneosqrteps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct oneosqrteps_t : constant_callable<oneosqrteps_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/signmask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace eve
template<typename Options>
struct signmask_t : constant_callable<signmask_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::same_as<T, float> ) return T{-0x0p+0f};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/smallestposval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct smallestposval_t : constant_callable<smallestposval_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::integral<T> ) return T{1};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/sqrteps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct sqrteps_t : constant_callable<sqrteps_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/sqrtsmallestposval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct sqrtsmallestposval_t : constant_callable<sqrtsmallestposval_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::integral<T> ) return T{1};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/sqrtvalmax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace eve
template<typename Options>
struct sqrtvalmax_t : constant_callable<sqrtvalmax_t, Options, lower_option, upper_option>
{
template<plain_value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (std::same_as<T, float> ) return T{0x1.fffffep+63};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/twotonmb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct twotonmb_t : constant_callable<twotonmb_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>) return T{0x1p+23f};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/valmin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct valmin_t : constant_callable<valmin_t, Options, lower_option, upper_option>
{
template<plain_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
return std::numeric_limits<T>::lowest();
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/core/constant/zero.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace eve
constexpr EVE_FORCEINLINE auto operator()(auto& m) const { return m = functor<zero_t>(as{m}); }
};

template<eve::value T>
template<typename T>
static EVE_FORCEINLINE constexpr T value(as<T>, auto const&)
{
if constexpr (kumi::product_type<T>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/catalan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct catalan_t : constant_callable<catalan_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/cbrt_pi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct cbrt_pi_t : constant_callable<cbrt_pi_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/cos_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct cos_1_t : constant_callable<cos_1_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/cosh_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct cosh_1_t : constant_callable<cosh_1_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/egamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct egamma_t : constant_callable<egamma_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
4 changes: 2 additions & 2 deletions include/eve/module/math/constant/egamma_sqr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct egamma_sqr_t : constant_callable<egamma_sqr_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand All @@ -38,7 +38,7 @@ namespace eve
{
return this->behavior(as<T>{}, eve::current_api, this->options(), v);
}

EVE_CALLABLE_OBJECT(egamma_sqr_t, egamma_sqr_);
};

Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/epso_2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct epso_2_t : constant_callable<epso_2_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr(std::same_as<T, float>) return T{0x1p-24};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/euler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct euler_t : constant_callable<euler_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/exp_pi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct exp_pi_t : constant_callable<exp_pi_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct extreme_value_skewness_t : constant_callable<extreme_value_skewness_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/four_minus_pi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct four_minus_pi_t : constant_callable<four_minus_pi_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/four_pio_3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct four_pio_3_t : constant_callable<four_pio_3_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/glaisher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct glaisher_t : constant_callable<glaisher_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/inv_2eps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct inv_2eps_t : constant_callable<inv_2eps_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>) return T{0x1p+22};
Expand Down
2 changes: 1 addition & 1 deletion include/eve/module/math/constant/inv_2pi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace eve
template<typename Options>
struct inv_2pi_t : constant_callable<inv_2pi_t, Options, lower_option, upper_option>
{
template<floating_value T, typename Opts>
template<typename T, typename Opts>
static EVE_FORCEINLINE constexpr T value(as<T>, Opts const&)
{
if constexpr (std::same_as<T, float>)
Expand Down
Loading

0 comments on commit b143360

Please sign in to comment.