[Liboil-commit] 2 commits - liboil/amd64
David Schleef
ds at kemper.freedesktop.org
Sun Mar 16 18:59:07 PDT 2008
liboil/amd64/wavelet.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 22558a49326f8ca59e1dffd1bc8d0fc5f98c23fd
Merge: ba4855b... 26cf981...
Author: David Schleef <ds at bigkitten.com>
Date: Sun Mar 16 18:59:02 2008 -0700
Merge branch 'master' of ssh://git.freedesktop.org/git/liboil
commit ba4855b50c5b840e88b330362e9d094810427315
Author: David Schleef <ds at bigkitten.com>
Date: Sun Mar 16 18:58:49 2008 -0700
Check n==0 case.
diff --git a/liboil/amd64/wavelet.c b/liboil/amd64/wavelet.c
index 9785fa2..1ee7ba7 100644
--- a/liboil/amd64/wavelet.c
+++ b/liboil/amd64/wavelet.c
@@ -1770,6 +1770,7 @@ lshift_s16_mmx(int16_t *d1, int16_t *s1, int16_t *s3_1, int n)
n--;
}
n >>= 2;
+ if (n == 0) return;
__asm__ __volatile__ ("\n"
" movzwl 0(%[s3_1]), %%ecx\n"
" movd %%ecx, %%mm1\n"
@@ -1800,6 +1801,7 @@ lshift_s16_mmx_2(int16_t *d1, int16_t *s1, int16_t *s3_1, int n)
n--;
}
n >>= 3;
+ if (n == 0) return;
__asm__ __volatile__ ("\n"
" movzwl 0(%[s3_1]), %%ecx\n"
" movd %%ecx, %%mm1\n"
More information about the Liboil-commit
mailing list