Browse Source

fix NAN handling

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

+ 7
- 1
kernel/x86_64/scal_atom.S View File

@@ -60,8 +60,10 @@
#ifdef WINDOWS_ABI
movq 40(%rsp), X
movq 48(%rsp), INCX
movq 64(%rsp), %r9
movaps %xmm3, %xmm0
#else
movq 24(%rsp), %r9
#endif

SAVEREGISTERS
@@ -73,6 +75,10 @@
lea (, INCX, SIZE), INCX
comisd %xmm0, %xmm1
jne .L100
jp .L100

cmpq $1, %r9
je .L100

/* Alpha == ZERO */
cmpq $SIZE, INCX


+ 1
- 1
kernel/x86_64/zscal_atom.S View File

@@ -74,7 +74,7 @@
pxor %xmm15, %xmm15
comisd %xmm0, %xmm15
jne .L30 # Alpha_r != ZERO
jp .L30
comisd %xmm1, %xmm15
jne .L30 # Alpha_i != ZERO



Loading…
Cancel
Save