Skip to content

Commit dd6c33d

Browse files
authored
make NAN handling depend on dummy2 parameter
1 parent 2020569 commit dd6c33d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

kernel/x86/scal.S

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,24 @@
5757
#ifdef XDOUBLE
5858
movl 44(%esp),%edi
5959
movl 48(%esp),%esi
60+
movl 64(%esp),%ecx
6061
#elif defined(DOUBLE)
6162
movl 36(%esp),%edi
6263
movl 40(%esp),%esi
64+
movl 56(%esp),%ecx
6365
#else
6466
movl 32(%esp),%edi
6567
movl 36(%esp),%esi
68+
movl 54(%esp),%ecx
6669
#endif
6770

6871
ftst
6972
fnstsw %ax
7073
andb $68, %ah
71-
// je .L300 # Alpha != ZERO
72-
jmp .L300
74+
je .L300 # Alpha != ZERO
75+
76+
cmpl $1,%ecx # dummy2 flag
77+
je .L300
7378

7479
/* Alpha == ZERO */
7580
cmpl $1,%esi

0 commit comments

Comments
 (0)