Fix sign extension issue with mfc1, add TODO for banker's rounding

This commit is contained in:
Mr-Wiseguy 2025-01-25 21:17:55 -05:00
parent e2e5b349b4
commit cb2a5487e2
2 changed files with 14 additions and 3 deletions

View file

@ -301,6 +301,7 @@ void N64Recomp::CGenerator::get_operand_string(Operand operand, UnaryOpType oper
case UnaryOpType::TruncateLFromD:
operand_string = "TRUNC_L_D(" + operand_string + ")";
break;
// TODO these four operations should use banker's rounding, but roundeven is C23 so it's unavailable here.
case UnaryOpType::RoundWFromS:
operand_string = "lroundf(" + operand_string + ")";
break;