vec_insert: Vector Insert (deprecated)

d = vec_insert(a, b, c)

Returns a copy of the vector b with the value of its element c replaced by a. This function uses the modulo arithmetic on c to determine the element number. For example, if c is out of range, the compiler uses c modulo the number of elements in the vector to determine the element position.

Table 1. Deprecated prototypes of vec_insert
d a b c
vector unsigned char unsigned char vector bool char signed int
vector unsigned short unsigned short vector bool short
vector unsigned int unsigned int vector bool int
vector unsigned long long unsigned long long vector bool long long
Note: For other prototypes that are not deprecated of this vector built-in function, see vec_insert: Vector Insert.