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

Method process_unary_op

src/cgenerator.cpp:575–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void N64Recomp::CGenerator::process_unary_op(const UnaryOp& op, const InstructionContext& ctx) const {
576 // Thread local variables to prevent allocations when possible.
577 // TODO these thread locals probably don't actually help right now, so figure out a better way to prevent allocations.
578 thread_local std::string output{};
579 thread_local std::string input{};
580 get_operand_string(op.output, UnaryOpType::None, ctx, output);
581 get_operand_string(op.input, op.operation, ctx, input);
582 fmt::print(output_file, "{} = {};\n", output, input);
583}
584
585void N64Recomp::CGenerator::process_store_op(const StoreOp& op, const InstructionContext& ctx) const {
586 // Thread local variables to prevent allocations when possible.

Callers 1

process_instructionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected