1
0
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:
Geotale 2024-05-28 16:46:59 -05:00 committed by GitHub
parent c0c8252860
commit fd61f99974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;