mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[FAST486]
Fix comparing NaNs in Fast486FpuCompare. svn path=/trunk/; revision=67844
This commit is contained in:
parent
7e58e7cf42
commit
15c2b7663c
1 changed files with 6 additions and 2 deletions
|
@ -767,13 +767,17 @@ Fast486FpuCompare(PFAST486_STATE State,
|
|||
{
|
||||
if (FPU_IS_NAN(FirstOperand) || FPU_IS_NAN(SecondOperand))
|
||||
{
|
||||
if (FPU_IS_POS_INF(FirstOperand) && FPU_IS_NEG_INF(SecondOperand))
|
||||
if ((FPU_IS_POS_INF(FirstOperand)
|
||||
&& (!FPU_IS_NAN(SecondOperand) || FPU_IS_NEG_INF(SecondOperand)))
|
||||
|| (!FPU_IS_NAN(FirstOperand) && FPU_IS_NEG_INF(SecondOperand)))
|
||||
{
|
||||
State->FpuStatus.Code0 = FALSE;
|
||||
State->FpuStatus.Code2 = FALSE;
|
||||
State->FpuStatus.Code3 = FALSE;
|
||||
}
|
||||
else if (FPU_IS_NEG_INF(FirstOperand) && FPU_IS_POS_INF(SecondOperand))
|
||||
else if ((FPU_IS_POS_INF(SecondOperand)
|
||||
&& (!FPU_IS_NAN(FirstOperand) || FPU_IS_NEG_INF(FirstOperand)))
|
||||
|| (!FPU_IS_NAN(SecondOperand) && FPU_IS_NEG_INF(FirstOperand)))
|
||||
{
|
||||
State->FpuStatus.Code0 = TRUE;
|
||||
State->FpuStatus.Code2 = FALSE;
|
||||
|
|
Loading…
Reference in a new issue