vec_ctu
Purpose
Converts a vector of floating-point numbers into a vector of unsigned fixed-point numbers.
Note: Elements 1 and 3 of the result vector are undefined when a is
a double vector.
Syntax
d=vec_ctu(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector unsigned int | vector float | 0-31 |
vector double |
Result value
The value of each element of the result is the saturated value obtained by multiplying the corresponding element of a by 2 to the power of b.