d = vec_find_any_eq(a, b)
Find element of a from any element of b with an equal value.
For each element of the result, the value of each bit is 1 if the corresponding elements of a equal any element of b. Otherwise, the value of each bit is 0.
d | a | b |
---|---|---|
vector bool char | vector signed char | vector signed char |
vector bool char | vector bool char | |
vector unsigned char | vector unsigned char | |
vector bool short | vector signed short | vector signed short |
vector bool short | vector bool short | |
vector unsigned short | vector unsigned short | |
vector bool int | vector signed int | vector signed int |
vector bool int | vector bool int | |
vector unsigned int | vector unsigned int |
vector signed int a = {1, -2, 3, -4};
vector signed int b = {-5, 3, -7, 8};
vector bool int d = vec_find_any_eq(a, b); // d = {0, 0, 0xFFFFFFFF, 0}