mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-09 12:52:56 +00:00
fp/info: Incorrect point_position in FPValue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user