emit_x64: Remove FPSCR_RoundTowardsZero() virtual function from EmitContext struct
This code was bugged in that we were comparing if the rounding mode was not equal to rounding towards zero. Fortunately, however, nothing uses this function anymore, and there's already the more general FPSCR_RMode() available, so this can be removed entirely.
This commit is contained in:
parent
fd92e2f186
commit
0ec8dac660
5 changed files with 0 additions and 11 deletions
|
@ -66,10 +66,6 @@ u32 A32EmitContext::FPCR() const {
|
|||
return Location().FPSCR().Value();
|
||||
}
|
||||
|
||||
bool A32EmitContext::FPSCR_RoundTowardsZero() const {
|
||||
return Location().FPSCR().RMode() != FP::RoundingMode::TowardsZero;
|
||||
}
|
||||
|
||||
bool A32EmitContext::FPSCR_FTZ() const {
|
||||
return Location().FPSCR().FTZ();
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ struct A32EmitContext final : public EmitContext {
|
|||
A32::LocationDescriptor Location() const;
|
||||
FP::RoundingMode FPSCR_RMode() const override;
|
||||
u32 FPCR() const override;
|
||||
bool FPSCR_RoundTowardsZero() const override;
|
||||
bool FPSCR_FTZ() const override;
|
||||
bool FPSCR_DN() const override;
|
||||
};
|
||||
|
|
|
@ -48,10 +48,6 @@ u32 A64EmitContext::FPCR() const {
|
|||
return Location().FPCR().Value();
|
||||
}
|
||||
|
||||
bool A64EmitContext::FPSCR_RoundTowardsZero() const {
|
||||
return Location().FPCR().RMode() != FP::RoundingMode::TowardsZero;
|
||||
}
|
||||
|
||||
bool A64EmitContext::FPSCR_FTZ() const {
|
||||
return Location().FPCR().FZ();
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ struct A64EmitContext final : public EmitContext {
|
|||
A64::LocationDescriptor Location() const;
|
||||
FP::RoundingMode FPSCR_RMode() const override;
|
||||
u32 FPCR() const override;
|
||||
bool FPSCR_RoundTowardsZero() const override;
|
||||
bool FPSCR_FTZ() const override;
|
||||
bool FPSCR_DN() const override;
|
||||
bool AccurateNaN() const override;
|
||||
|
|
|
@ -47,7 +47,6 @@ struct EmitContext {
|
|||
|
||||
virtual FP::RoundingMode FPSCR_RMode() const = 0;
|
||||
virtual u32 FPCR() const = 0;
|
||||
virtual bool FPSCR_RoundTowardsZero() const = 0;
|
||||
virtual bool FPSCR_FTZ() const = 0;
|
||||
virtual bool FPSCR_DN() const = 0;
|
||||
virtual bool AccurateNaN() const { return true; }
|
||||
|
|
Loading…
Reference in a new issue