Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

VectorCount

Returns the smallest type of unsigned ints capable of holding the length of the given vector type.

simd.VectorCount
pub fn VectorCount(comptime VectorType: type) type

File

lib/std/simd.zig:119

Code

pub fn VectorCount(comptime VectorType: type) type {
    return std.math.IntFittingRange(0, vectorLength(VectorType));
}