Browse Source

fixed #4 csrot & drot returned the wrong result when incx==incy==0 on i686 arch.

tags/v0.1alpha1
Xianyi 14 years ago
parent
commit
bfaa80c316
2 changed files with 10 additions and 0 deletions
  1. +4
    -0
      kernel/x86/rot_sse2.S
  2. +6
    -0
      kernel/x86/zrot_sse.S

+ 4
- 0
kernel/x86/rot_sse2.S View File

@@ -859,6 +859,10 @@

.L50:
movl N, I
cmpl $0, INCX
je .L56
cmpl $0, INCY
je .L56
sarl $2, I
jle .L55
ALIGN_3


+ 6
- 0
kernel/x86/zrot_sse.S View File

@@ -1285,6 +1285,12 @@

.L50:
movl N, I
//if incx ==0 || incy==0 jump to the tail
cmpl $0, INCX
je .L56
cmpl $0, INCY
je .L56
sarl $2, I
jle .L55
ALIGN_3


Loading…
Cancel
Save