Function fpRegNum [src]

Prototype

pub fn fpRegNum(arch: Arch, reg_context: RegisterContext) u8

Parameters

arch: Archreg_context: RegisterContext

Source

pub fn fpRegNum(arch: Arch, reg_context: RegisterContext) u8 { return switch (arch) { // GCC on OS X historically did the opposite of ELF for these registers // (only in .eh_frame), and that is now the convention for MachO .x86 => if (reg_context.eh_frame and reg_context.is_macho) 4 else 5, .x86_64 => 6, .arm, .armeb, .thumb, .thumbeb => 11, .aarch64, .aarch64_be => 29, else => unreachable, }; }