Browse Source

Handle NaN in input

tags/v0.3.27
Martin Kroeker GitHub 1 year ago
parent
commit
7ee1ee38e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      kernel/x86/zscal_sse.S
  2. +1
    -0
      kernel/x86/zscal_sse2.S

+ 1
- 0
kernel/x86/zscal_sse.S View File

@@ -87,6 +87,7 @@
xorps %xmm7, %xmm7
comiss %xmm0, %xmm7
jne .L100 # Alpha_r != ZERO
jp .L100 # Alpha_r NaN

comiss %xmm1, %xmm7
jne .L100 # Alpha_i != ZERO


+ 1
- 0
kernel/x86/zscal_sse2.S View File

@@ -98,6 +98,7 @@
xorps %xmm7, %xmm7
comisd %xmm0, %xmm7
jne .L100
jp .L100

comisd %xmm1, %xmm7
jne .L100


Loading…
Cancel
Save