Browse Source

Refs #86. Test alpha=Nan in x86/x86_64 dscale.

tags/v0.1.1
Xianyi Zhang 13 years ago
parent
commit
03b0eb19f7
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      kernel/x86/scal_sse2.S
  2. +2
    -1
      kernel/x86_64/scal_sse2.S

+ 2
- 1
kernel/x86/scal_sse2.S View File

@@ -76,7 +76,8 @@
xorps %xmm1, %xmm1
comisd %xmm0, %xmm1
jne .L100 # Alpha != ZERO

jp .L100 # For Alpha = NaN
/* Alpha == ZERO */
cmpl $SIZE, INCX
jne .L50


+ 2
- 1
kernel/x86_64/scal_sse2.S View File

@@ -74,7 +74,8 @@
xorps %xmm1, %xmm1
comisd %xmm0, %xmm1
jne .L100 # Alpha != ZERO

jp .L100 # For Alpha = NaN
/* Alpha == ZERO */
cmpq $SIZE, INCX
jne .L50


Loading…
Cancel
Save