E.V.E  0.1-beta

◆ minlog10denormal

eve::minlog10denormal = {}
inlineconstexpr

Callable object computing the least value for which eve::exp returns a non denormal result.

Required header: #include <eve/function/minlog10denormal.hpp>

Member Effect
operator() Computes the minlog10denormal constant

tempate < floating_value T > T operator()( as<T> const & t) const noexcept;
Lightweight type-wrapper.
Definition: as.hpp:29

Parameters

t: Type wrapper instance embedding the type of the constant.

Return value

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

  • T(-45.1545f) if eve::element_type_t<T> is float
  • T(-323.607) if eve::element_type_t<T> is double

Example

See it live on Compiler Explorer

#include <eve/constant/minlog10denormal.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float>;
using wide_it = eve::wide<std::int16_t>;
int main()
{
wide_ft wxf;
std::cout << "---- simd" << std::endl
<< "-> minlog10denormal(as<wide_ft>()) = " << eve::minlog10denormal(eve::as<wide_ft>()) << std::endl
<< "-> minlog10denormal(as(wxf)) = " << eve::minlog10denormal(eve::as(wxf)) << std::endl;
double xf;
std::cout << "---- scalar" << std::endl
<< "-> minlog10denormal(as<float>()) = " << eve::minlog10denormal(eve::as(float())) << std::endl
<< "-> minlog10denormal(as<xf)) = " << eve::minlog10denormal(eve::as(xf)) << std::endl;
return 0;
}
constexpr callable_minlog10denormal_ minlog10denormal
Callable object computing the least value for which eve::exp returns a non denormal result.
Definition: minlog10denormal.hpp:57
Wrapper for SIMD registers.
Definition: wide.hpp:65