MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / get_gpr_context_offset

Function get_gpr_context_offset

LiveRecomp/live_generator.cpp:229–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229constexpr int get_gpr_context_offset(int gpr_index) {
230 return offsetof(recomp_context, r0) + sizeof(recomp_context::r0) * gpr_index;
231}
232
233constexpr int get_fpr_single_context_offset(int fpr_index) {
234 return offsetof(recomp_context, f0.fl) + sizeof(recomp_context::f0) * fpr_index;

Callers 5

get_gpr_valuesFunction · 0.85
process_store_opMethod · 0.85
emit_switchMethod · 0.85
emit_cop0_status_readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected