E.V.E
v2023.02.15
Loading...
Searching...
No Matches
Conversions

Detailed Description

Type conversions

convert, simd_cast,

  • conversion functions take two arguments a value and a scalar type to convert each lane of the value (the value itself, if it is scalar value)
  • The conversion can use the decorator eve::saturated in which case (sic) the result is saturated in the target type.

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.