summaryrefslogtreecommitdiff
path: root/liboil/i386_amd64
diff options
context:
space:
mode:
authorDavid Schleef <ds@ginger.bigkitten.com>2008-05-12 17:08:17 -0700
committerDavid Schleef <ds@ginger.bigkitten.com>2008-05-12 17:08:17 -0700
commitec0d0c9de2064953a57c076751741945b0dff87c (patch)
tree8dc183bace6422ff9d7c75491d6774506dbd703a /liboil/i386_amd64
parent99c2ef9c10b6735592a715a17919690d617c3a4f (diff)
downloadliboil-ec0d0c9de2064953a57c076751741945b0dff87c.tar.gz
Fix problems noticed by test suite
Diffstat (limited to 'liboil/i386_amd64')
-rw-r--r--liboil/i386_amd64/convert.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/liboil/i386_amd64/convert.c b/liboil/i386_amd64/convert.c
index cf8e126..68cf928 100644
--- a/liboil/i386_amd64/convert.c
+++ b/liboil/i386_amd64/convert.c
@@ -44,6 +44,7 @@ convert_u8_s16_mmx (uint8_t * dest, const int16_t * src, int n)
dest++;
n--;
}
+ if (n==0) return;
n>>=3;
__asm__ __volatile__ ("\n"
@@ -115,8 +116,10 @@ convert_s16_u8_mmx (int16_t * dest, const uint8_t * src, int n)
dest++;
n--;
}
+ if (n==0) return;
n>>=3;
+
__asm__ __volatile__ ("\n"
" pxor %%mm0, %%mm0\n"
"1:\n"