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.

cpu

xtensa.cpu
pub const cpu = struct

File

lib/std/Target/xtensa.zig:259

Code

pub const cpu = struct {
    pub const esp32: CpuModel = .{
        .name = "esp32",
        .llvm_name = "esp32",
        .features = featureSet(&[_]Feature{
            .bool,
            .clamps,
            .coprocessor,
            .dcache,
            .debug,
            .density,
            .dfpaccel,
            .div32,
            .exception,
            .fp,
            .highpriinterrupts_level7,
            .interrupt,
            .loop,
            .mac16,
            .minmax,
            .miscsr,
            .mul16,
            .mul32,
            .mul32high,
            .nsa,
            .prid,
            .regprotect,
            .rvector,
            .s32c1i,
            .sext,
            .threadptr,
            .timers3,
            .windowed,
        }),
    };
    pub const esp8266: CpuModel = .{
        .name = "esp8266",
        .llvm_name = "esp8266",
        .features = featureSet(&[_]Feature{
            .debug,
            .density,
            .exception,
            .extendedl32r,
            .highpriinterrupts_level3,
            .interrupt,
            .mul16,
            .mul32,
            .nsa,
            .prid,
            .regprotect,
            .rvector,
            .timers1,
        }),
    };
    pub const generic: CpuModel = .{
        .name = "generic",
        .llvm_name = "generic",
        .features = featureSet(&[_]Feature{}),
    };
}