vec_cp_until_zero: Vector Copy Until Zero

d = vec_cp_until_zero(a)

Copies the vector elements from a to d, starting from vector element 0, until the vector element from a contains a value of 0, or the entire vector is copied. The remaining vector elements in d are set to 0.

Table 1. Vector Copy Until Zero
d a
vector signed char vector signed char
vector bool char vector bool char
vector unsigned char vector unsigned char
vector signed short vector signed short
vector bool short vector bool short
vector unsigned short vector unsigned short
vector signed int vector signed int
vector bool int vector bool int
vector unsigned int vector unsigned int