mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-07-15 06:05:57 +00:00
Fix sign extension issue with mfc1, add TODO for banker's rounding
This commit is contained in:
parent
e2e5b349b4
commit
cb2a5487e2
2 changed files with 14 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue