vec_blendv
Purpose
Blends two source vectors according to the sign bits of the corresponding elements of the third source vector.
Note: This built-in function
is valid only when the -mcpu option is set to target Power10 processors.
Syntax
d=vec_blendv(a,b,c)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b | c |
---|---|---|---|
vector signed char | vector signed char | vector signed char | vector unsigned char |
vector unsigned char | vector unsigned char | vector unsigned char | vector unsigned char |
vector signed short | vector signed short | vector signed short | vector unsigned short |
vector unsigned short | vector unsigned short | vector unsigned short | vector unsigned short |
vector signed int | vector signed int | vector signed int | vector unsigned int |
vector unsigned int | vector unsigned int | vector unsigned int | vector unsigned int |
vector signed long long | vector signed long long | vector signed long long | vector unsigned long long |
vector unsigned long long | vector unsigned long long | vector unsigned long long | vector unsigned long long |
vector float | vector float | vector float | vector unsigned int |
vector double | vector double | vector double | vector unsigned long long |
Result value
For each element of c
, if
bit 0 of that element is equal to 0, the corresponding element of d
is set to the corresponding element of
a
; otherwise, the corresponding
element of d
is set to
the corresponding element of b
.