vec_packsu

Purpose

Packs information from each element of two vectors into the result vector by using saturated values.

Syntax

d=vec_packsu(a, b)

Result and argument types

The following tables describe the types of the returned value and the function arguments.

Table 1. Result and argument types
d a b
vector unsigned char vector signed short vector signed short
vector unsigned short vector unsigned short
vector unsigned short vector signed int vector signed int
vector unsigned int vector unsigned int
Note: The following types are valid when the -mcpu option is set to target POWER8 processors, or higher.
Table 2. Result and argument types supported
d a b
vector unsigned int vector signed long long vector signed long long
vector unsigned long long vector unsigned long long

Result value

The value of each element of the result vector is the saturated value of the corresponding element of the result of concatenating a and b.