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

Function gpr_to_string

src/cgenerator.cpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}();
80
81static std::string gpr_to_string(int gpr_index) {
82 if (gpr_index == 0) {
83 return "0";
84 }
85 return fmt::format("ctx->r{}", gpr_index);
86}
87
88static std::string fpr_to_string(int fpr_index) {
89 return fmt::format("ctx->f{}.fl", fpr_index);

Callers 8

get_operand_stringMethod · 0.85
emit_cop0_status_readMethod · 0.85
emit_cop1_cs_readMethod · 0.85
emit_cop1_cs_writeMethod · 0.85
emit_muldivMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected