vec_find_any_eq_or_0_idx: Vector Find Any Element Equal or Zero Index

d = vec_find_any_eq_or_0_idx(a, b)

Find the byte-index of element of a from any element of b with an equal value, or the byte-index of element of a is 0. The result is the lowest byte-index from element of a, if it is found to match those conditions. Otherwise, the result is 16.

The result is placed into byte element seven of the returned vector, and all other bytes are set to 0.

Table 1. Vector Find Any Element Equal or Zero Index
d a b
vector signed char vector signed char vector signed char
vector unsigned char vector bool char vector bool char
vector unsigned char vector unsigned char
vector signed short vector signed short vector signed short
vector unsigned short vector bool short vector bool short
vector unsigned short vector unsigned short
vector signed int vector signed int vector signed int
vector unsigned int vector bool int vector bool int
vector unsigned int vector unsigned int
Example:
vector unsigned int a = {1, 2, 0, 4};
vector unsigned int b = {5, 6, 7, 8};

vector unsigned int d = vec_find_any_eq_or_0_idx(a,b); // byte 7 of d = 8
In this example, the first and second elements of a are not found in the vector b, and the third element (byte index 8) is a 0.