mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-19 14:52:57 +00:00
FPCR: Add AHP setter and FZ16 getter
This commit is contained in:
@@ -37,6 +37,11 @@ public:
|
||||
return Common::Bit<26>(value);
|
||||
}
|
||||
|
||||
/// Alternate half-precision control flag.
|
||||
void AHP(bool AHP_) {
|
||||
value = Common::ModifyBit<26>(value, AHP_);
|
||||
}
|
||||
|
||||
/// Default NaN mode control bit.
|
||||
bool DN() const {
|
||||
return Common::Bit<25>(value);
|
||||
@@ -52,6 +57,10 @@ public:
|
||||
return static_cast<FP::RoundingMode>(Common::Bits<22, 23>(value));
|
||||
}
|
||||
|
||||
bool FZ16() const {
|
||||
return Common::Bit<19>(value);
|
||||
}
|
||||
|
||||
/// Input denormal exception trap enable flag.
|
||||
bool IDE() const {
|
||||
return Common::Bit<15>(value);
|
||||
|
||||
Reference in New Issue
Block a user