vec_cts
Purpose
Converts a vector of floating-point numbers into a vector of signed fixed-point numbers.
This built-in function is valid only when you include the altivec.h file.
Syntax
d=vec_cts(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector signed 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.