E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ maxexponentp1

eve::maxexponentp1 = functor<maxexponentp1_t>
inlineconstexpr

Defined in Header

#include <eve/module/core.hpp>

Callable Signatures

namespace eve
{
template<eve::floating_value T> constexpr eve::as_integer<T> maxexponentp1(as<T> x);
}
constexpr auto maxexponentp1
Computes the the greatest exponent of a floating point IEEE value plus one.
Definition maxexponentp1.hpp:71
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition translation.hpp:107
EVE Main Namespace.
Definition abi.hpp:19

Parameters

  • x : Type wrapper instance embedding the type of the constant.

Return value

the call eve::maxexponentp1(as<T>()) is semantically equivalent to

Example

#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
template<typename T>
consteval auto constexpr_maxexponentp1() { return eve::maxexponentp1(eve::as<T>{}); }
int main()
{
std::cout << "---- simd" << std::endl
<< "-> maxexponentp1(as<wide_ft>()) = " << eve::maxexponentp1(eve::as<wide_ft>()) << std::endl
<< "-> maxexponentp1(as(wxf)) = " << eve::maxexponentp1(eve::as(wxf)) << std::endl;
double xf;
std::cout << "---- scalar" << std::endl
<< "-> maxexponentp1(as<float>()) = " << eve::maxexponentp1(eve::as(float())) << std::endl
<< "-> maxexponentp1(as<xf)) = " << eve::maxexponentp1(eve::as(xf)) << std::endl;
std::cout << "-> constexpr maxexponentp1 = " << constexpr_maxexponentp1<float>() << std::endl;
return 0;
}
Lightweight type-wrapper.
Definition as.hpp:29