vec_ctf
Purpose
Converts a vector of fixed-point numbers into a vector of floating-point numbers.
This built-in function is valid only when you include the altivec.h file.
Syntax
d=vec_ctf(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector float | vector signed int | 0-31 |
vector unsigned int | ||
vector signed long long | ||
vector unsigned long long |
Result value
The value of each element of the result is the closest floating-point estimate of the value of the corresponding element of a divided by 2 to the power of b.
Note: The second and fourth elements
of the result vector are undefined when a is a signed
long long or an unsigned long long vector.