Defined in Header
#include <eve/module/core.hpp>
{
template<eve::
floating_value T>
constexpr eve::as_integer_t<T>
exponentmask(
as<T> t)
noexcept;
}
constexpr auto exponentmask
Computes the the exponent bit mask of IEEE float or double.
Definition exponentmask.hpp:72
EVE Main Namespace.
Definition abi.hpp:19
Lightweight type-wrapper.
Definition as.hpp:29
Parameters
t: Type wrapper instance embedding the type of the constant.
Return value
the call eve::exponentmask(as<T>()) returns elementwise, the integral mask to extract the exponent bits of an ieee floating value. The element values are:
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
template<typename T>
int main()
{
wide_ft wxf;
std::cout << "---- simd" << std::endl
double xf;
std::cout << "---- scalar" << std::endl
std::cout << "-> constexpr exponentmask = " << constexpr_exponentmask<float>() << std::endl;
return 0;
}
Wrapper for SIMD registers.
Definition wide.hpp:94