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

◆ mindenormal

eve::mindenormal = functor<mindenormal_t>
inlineconstexpr

Defined in Header

#include <eve/module/core.hpp>

Callable Signatures

namespace eve
{
template<eve::plain_value T> constexpr T mindenormal(as<T> x) noexcept;
}
constexpr auto mindenormal
Computes the smallest denormal positive value.
Definition mindenormal.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::mindenormal(as<T>()) is semantically equivalent to:

Example

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