Function ipRegNum [src]
Returns null for CPU architectures without an instruction pointer register.
Prototype
pub fn ipRegNum(arch: Arch) ?u8
Parameters
arch: Arch
Source
pub fn ipRegNum(arch: Arch) ?u8 {
return switch (arch) {
.x86 => 8,
.x86_64 => 16,
.arm, .armeb, .thumb, .thumbeb => 15,
.aarch64, .aarch64_be => 32,
else => null,
};
}