Computes the the greatest floating point representing an integer and such that n != n+1.
Defined in Header
#include <eve/module/core.hpp>
{
template< eve::value T >
}
constexpr callable_maxflint_ maxflint
Computes the the greatest floating point representing an integer and such that n !...
Definition: maxflint.hpp:59
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
x
: Type wrapper instance embedding the type of the constant.
Return value
The call eve::maxflint(as<T>())
is semantically equivalent to:
T(16777216.0f)
if eve::element_type_t<T>
is float.
T(9007199254740992.0)
if eve::element_type_t<T>
is double.
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
int main()
{
wide_ft wxf;
std::cout << "---- simd" << std::endl
double xf;
std::cout << "---- scalar" << std::endl
<<
"-> maxflint(as<float>()) = " << std::setprecision(17) <<
eve::maxflint(
eve::as(
float())) << std::endl
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65