| 573 | } |
| 574 | |
| 575 | void 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 | |
| 585 | void N64Recomp::CGenerator::process_store_op(const StoreOp& op, const InstructionContext& ctx) const { |
| 586 | // Thread local variables to prevent allocations when possible. |
no outgoing calls
no test coverage detected