summaryrefslogtreecommitdiff
path: root/liboil/simdpack
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-12-02 05:26:35 +0000
committerDavid Schleef <ds@schleef.org>2004-12-02 05:26:35 +0000
commit6b234e865679b56811037e34f5e0767cb6f76458 (patch)
tree4a50e01c2f8c8139f1853a3550637cc6d7fa9f11 /liboil/simdpack
parent4adc936aeb128077b54e0de66477d019d6f6527b (diff)
downloadliboil-6b234e865679b56811037e34f5e0767cb6f76458.tar.gz
* liboil/simdpack/clip_s16.c: (clip_s16_ppcasm),
(clip_s16_ppcasm2), (clip_s16_ppcasm3): Fix compile problem. Change asm arguments from read/write to read. Not 100% correct, but we don't care, because we're not simdpack.
Diffstat (limited to 'liboil/simdpack')
-rw-r--r--liboil/simdpack/clip_s16.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/liboil/simdpack/clip_s16.c b/liboil/simdpack/clip_s16.c
index bc1cabe..329d6f2 100644
--- a/liboil/simdpack/clip_s16.c
+++ b/liboil/simdpack/clip_s16.c
@@ -71,7 +71,6 @@ static void
clip_s16_ppcasm (int16_t *dest, int dstr, int16_t *src, int sstr, int n,
int16_t *low, int16_t *hi)
{
- low=-low;
__asm__ __volatile__(
" li 7, 0 \n"
" mtctr %4 \n"
@@ -87,8 +86,8 @@ clip_s16_ppcasm (int16_t *dest, int dstr, int16_t *src, int sstr, int n,
" sthx 9,7,%0 \n"
" addi 7,7,2 \n"
" bdnz 1b \n"
- : "+b" (dest), "+b" (src), "+b" (*low), "+b" (*hi), "+b" (n)
- :
+ :
+ : "b" (dest), "b" (src), "b" (-*low), "b" (*hi), "b" (n)
: "7", "9", "10", "8", "11", "0", "ctr");
}
OIL_DEFINE_IMPL (clip_s16_ppcasm, clip_s16);
@@ -99,7 +98,6 @@ static void
clip_s16_ppcasm2 (int16_t *dest, int dstr, int16_t *src, int sstr, int n,
int16_t *low, int16_t *hi)
{
- low=-low;
src--;
dest--;
__asm__ __volatile__(
@@ -115,8 +113,8 @@ clip_s16_ppcasm2 (int16_t *dest, int dstr, int16_t *src, int sstr, int n,
" add 9,9,11 \n"
" sthu 9,2(%0) \n"
" bdnz 1b \n"
- : "+b" (dest), "+b" (src), "+b" (*low), "+b" (*hi), "+b" (n)
- :
+ :
+ : "b" (dest), "b" (src), "b" (-*low), "b" (*hi), "b" (n)
: "9", "10", "8", "11", "0", "ctr");
}
OIL_DEFINE_IMPL (clip_s16_ppcasm2, clip_s16);
@@ -130,7 +128,6 @@ static void
clip_s16_ppcasm3 (int16_t *dest, int dstr, int16_t *src, int sstr, int n,
int16_t *low, int16_t *hi)
{
- low=-low;
src--;
dest--;
n/=2;
@@ -157,8 +154,8 @@ clip_s16_ppcasm3 (int16_t *dest, int dstr, int16_t *src, int sstr, int n,
" add 19,19,21 \n"
" sthu 19,2(%0) \n"
" bdnz 1b \n"
- : "+b" (dest), "+b" (src), "+b" (*low), "+b" (*hi), "+b" (n)
:
+ : "b" (dest), "b" (src), "b" (-*low), "b" (*hi), "b" (n)
: "8", "9", "10", "11", "0",
"18", "19", "20", "21", "22", "ctr");
}