Browse Source

make NAN handling depend on dummy2 parameter

tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
dd6c33d34d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      kernel/x86/scal.S

+ 7
- 2
kernel/x86/scal.S View File

@@ -57,19 +57,24 @@
#ifdef XDOUBLE
movl 44(%esp),%edi
movl 48(%esp),%esi
movl 64(%esp),%ecx
#elif defined(DOUBLE)
movl 36(%esp),%edi
movl 40(%esp),%esi
movl 56(%esp),%ecx
#else
movl 32(%esp),%edi
movl 36(%esp),%esi
movl 54(%esp),%ecx
#endif

ftst
fnstsw %ax
andb $68, %ah
// je .L300 # Alpha != ZERO
jmp .L300
je .L300 # Alpha != ZERO

cmpl $1,%ecx # dummy2 flag
je .L300

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


Loading…
Cancel
Save