Type conversions
Variables | |
| constexpr auto | eve::as_value = functor<as_value_t> |
| converts eve constant or just a value to a type. | |
| constexpr auto | eve::convert = functor<convert_t> |
| Converts a value to another type. | |
| constexpr auto | eve::simd_cast = functor<simd_cast_t> |
| casting bits between simd values. | |
|
inlineconstexpr |
converts eve constant or just a value to a type.
Defined in Header
Parameters
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 eve constant of type Target.
|
inlineconstexpr |
Converts a value to another type.
Defined in Header
Parameters
Return value
|
inlineconstexpr |
casting bits between simd values.
Defined in Header
This cast reinterprets one eve::simd_value as the other, if such reinterpretation is available. If the output is smaller in size, the extra bits are dropped. If the output is bigger, the value of extra bits is unspecified.
What can be simd_cast?
Parameters
Return value
bits from x reinterpreted as a new type, according to the rules described earlier.