feature. See also
. The project being documented here (as the example) is the Zig library itself.
Target.cMaxIntAlignment
pub fn cMaxIntAlignment(target: *const Target) u16
File
Code
pub fn cMaxIntAlignment(target: *const Target) u16 {
return switch (target.cpu.arch) {
.avr,
.ez80,
=> 1,
.msp430,
.x86_16,
=> 2,
.arc,
.arceb,
.csky,
.kalimba,
.microblaze,
.microblazeel,
.or1k,
.propeller,
.sh,
.sheb,
.xcore,
=> 4,
.arm,
.armeb,
.hexagon,
.hppa,
.lanai,
.loongarch32,
.m68k,
.m88k,
.mips,
.mipsel,
.powerpc,
.powerpcle,
.riscv32,
.riscv32be,
.s390x,
.sparc,
.thumb,
.thumbeb,
.x86,
.xtensa,
.xtensaeb,
=> 8,
.aarch64,
.aarch64_be,
.alpha,
.amdgcn,
.bpfel,
.bpfeb,
.hppa64,
.kvx,
.loongarch64,
.mips64,
.mips64el,
.nvptx,
.nvptx64,
.powerpc64,
.powerpc64le,
.riscv64,
.riscv64be,
.sparc64,
.spirv32,
.spirv64,
.ve,
.wasm32,
.wasm64,
.x86_64,
=> 16,
};
}