vec_min
Purpose
Returns a vector containing the minimum value from each set of corresponding elements of the given vectors.
Syntax
d=vec_min(a, b)Result and argument types
The following tables describe the types of the returned value and the function arguments.
| d | a | b |
|---|---|---|
| vector signed char | vector bool char | vector signed char |
| vector signed char | vector signed char | |
| vector bool char | ||
| vector unsigned char | vector bool char | vector unsigned char |
| vector unsigned char | vector unsigned char | |
| vector bool char | ||
| vector signed short | vector bool short | vector signed short |
| vector signed short | vector signed short | |
| vector bool short | ||
| vector unsigned short | vector bool short | vector unsigned short |
| vector unsigned short | vector unsigned short | |
| vector bool short | ||
| vector signed int | vector bool int | vector signed int |
| vector signed int | vector signed int | |
| vector bool int | ||
| vector unsigned int | vector bool int | vector unsigned int |
| vector unsigned int | vector unsigned int | |
| vector bool int | ||
| vector float | vector float | vector float |
| vector double | vector double | vector double |
Note: When you call this built-in function, the following types are valid when
-qarch is set to target POWER8 processors, or higher.| d | a | b |
|---|---|---|
The same type as argument a |
vector signed long long | The same type as argument a |
| vector unsigned long long | ||
| vector bool long long |
Result value
The value of each element of
the result is the minimum of the values of the corresponding elements
of a and b.