mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 05:34:42 +01:00
fp/info: Incorrect point_position in FPValue
This commit is contained in:
parent
8a3b6364c2
commit
e60d6c0d20
3 changed files with 17 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ constexpr FPT FPValue() {
|
|||
return FPInfo<FPT>::Zero(sign);
|
||||
}
|
||||
|
||||
constexpr int point_position = static_cast<int>(FPInfo<FPT>::mantissa_width);
|
||||
constexpr int point_position = static_cast<int>(FPInfo<FPT>::explicit_mantissa_width);
|
||||
constexpr int highest_bit = Common::HighestSetBit(value);
|
||||
constexpr int offset = point_position - highest_bit;
|
||||
constexpr int normalized_exponent = exponent - offset + point_position;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue