mirror of
https://github.com/dolphin-emu/dolphin
synced 2024-07-01 07:54:33 +00:00
Rewrite expression to be in fewer parts
Per change suggested by JosJuice Co-authored-by: JosJuice <josjuice@gmail.com>
This commit is contained in:
parent
c0c8252860
commit
fd61f99974
|
@ -108,7 +108,7 @@ inline double Force25Bit(double d)
|
|||
// the fraction is "normal"
|
||||
// That is to say shifting it until the MSB of the fraction
|
||||
// would escape into the exponent
|
||||
u32 shift = std::countl_zero(fraction) + Common::DOUBLE_FRAC_WIDTH - 63;
|
||||
u32 shift = std::countl_zero(fraction) - (63 - Common::DOUBLE_FRAC_WIDTH);
|
||||
keep_mask >>= shift;
|
||||
round >>= shift;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user