Computes the the greatest exponent of a floating point IEEE value.
Defined in Header
#include <eve/module/core.hpp>
{
template< eve::value T >
}
constexpr callable_maxexponent_ maxexponent
Computes the the greatest exponent of a floating point IEEE value.
Definition: maxexponent.hpp:57
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
x
: Type wrapper instance embedding the type of the constant.
Return value
the call eve::maxexponent(as<T>())
is semantically equivalent to
- as_integer_t<T>(127) if eve::element_type_t<T> is float
- as_integer_t<T>(1023) if eve::element_type_t<T> is double
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft wxf;
std::cout << "---- simd" << std::endl
double xf;
std::cout << "---- scalar" << std::endl
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65