vec_cts

Purpose

Converts a vector of floating-point numbers into a vector of signed fixed-point numbers.

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.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us