vec_clr_last
Purpose
Clears the last N elements of a vector to zero.
Note: This built-in function
is valid only when the -mcpu option is set to target Power10 processors.
Syntax
d=vec_clr_last(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 char | vector signed char | unsigned int |
| vector unsigned char | vector unsigned char | unsigned int |
Result value
Let N be the value of b. The last N elements of d are set to zero. The remaining elements of
d are copied from the
corresponding elements of a. b must have a value between 1 and the number of
elements of a, inclusive, but
need not be a literal constant.