Computes the constant \(-1/2\).
Defined in Header
#include <eve/module/core.hpp>
{
template< eve::value T >
}
constexpr callable_mhalf_ mhalf
Computes the constant .
Definition: mhalf.hpp:56
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::mhalf(as<T>())
is semantically equivalent to T(-0.5)
.
#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