vec_genmask: Vector Generate Byte Mask

d = vec_genmask(a)

Generates byte masks for elements in the return vector. For each bit in a, if the bit is one, all bit positions in the corresponding byte element of d are set to ones. Otherwise, if the bit is zero, the corresponding byte element is set to zero.

Table 1. Vector Generate Byte Mask
d a
vector unsigned char unsigned short literal