Defined in Header
#include <eve/module/core.hpp>
{
template< eve::value From, eve::value T >
}
constexpr callable_as_value_ as_value
converts eve constant or just a value to a type.
Definition as_value.hpp:54
EVE Main Namespace.
Definition abi.hpp:18
Lightweight type-wrapper.
Definition as.hpp:29
Parameters
x
: either something convertible to T or an of eve constant
t
: Type wrapper instance embedding the type of the constant.
Return value
The call eve::as_value(as<T>())
returns a value of type T which is the conversion of x
to type Target or the the eve constant of type Target.
#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout << "---- simd" << '\n'
;
double xf = -62768.0f;
std::cout << "---- scalar" << '\n'
return 0;
}
constexpr auto valmax
Computes the the greatest representable value.
Definition valmax.hpp:66
Wrapper for SIMD registers.
Definition wide.hpp:70