Computes the smallest normal positive value.
Defined in Header
#include <eve/module/core.hpp>
{
template< eve::value T >
}
constexpr callable_smallestposval_ smallestposval
Computes the smallest normal positive value.
Definition: smallestposval.hpp:59
Definition: all_of.hpp:22
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
x
: Type wrapper instance embedding the type of the constant.
Return value
The call eve::smallestposval(as<T>())
is semantically equivalent to:
T(1)
if eve::element_type_t<T>
is integral
T(1.1754944e-38f)
if eve::element_type_t<T>
is float
T(2.225073858507201e-308)
if eve::element_type_t<T>
is double
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft wxf;
wide_it wxi;
std::cout << "---- simd" << std::endl
double xf;
std::int16_t xi;
std::cout << "---- scalar" << std::endl
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65