VectorIndex
Returns the smallest type of unsigned ints capable of indexing any element within the given vector type.
Source
Implementation
pub fn VectorIndex(comptime VectorType: type) type {
return std.math.IntFittingRange(0, vectorLength(VectorType) - 1);
}