Warning fix.

This commit is contained in:
Toni Wilen 2020-05-04 18:29:28 +03:00
parent 53c656424b
commit 51f5e7bfc3
2 changed files with 6 additions and 3 deletions

View File

@ -178,7 +178,8 @@ precision80:
++zExp;
zSig0 = LIT64( 0x8000000000000000 );
} else {
zSig0 &= ~ ( ( (uint64_t) ( zSig1<<1 ) == 0 ) & ( status->float_rounding_mode == float_round_nearest_even ) );
if ((zSig1 << 1) == 0 && status->float_rounding_mode == float_round_nearest_even)
zSig0 &= ~1;
}
} else {
if ( zSig0 == 0 ) zExp = 0;
@ -297,7 +298,8 @@ precision80:
++zExp;
zSig0 = LIT64( 0x8000000000000000 );
} else {
zSig0 &= ~ ( ( (uint64_t) ( zSig1<<1 ) == 0 ) & ( floatx80_internal_mode == float_round_nearest_even ) );
if ((zSig1 << 1) == 0 && floatx80_internal_mode == float_round_nearest_even)
zSig0 &= ~1;
}
} else {
if ( zSig0 == 0 ) zExp = 0;

View File

@ -55,7 +55,8 @@ static void round128to64(flag aSign, int32_t *aExp, uint64_t *aSig0, uint64_t *a
++zExp;
zSig0 = LIT64(0x8000000000000000);
} else {
zSig0 &= ~ (((uint64_t) (zSig1<<1) == 0) & (status->float_rounding_mode == float_round_nearest_even));
if ((zSig1 << 1) == 0 && status->float_rounding_mode == float_round_nearest_even)
zSig0 &= ~1;
}
} else {
if ( zSig0 == 0 ) zExp = 0;