summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-07 14:42:43 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-07 14:42:43 +0000
commit17eaff1a38cfa5fc51520d6f9582ce3a62b867cf (patch)
tree1e7d4d9e4bb874957cca937d2b2a108d5e784c1f
parent825adf684d46d9244160e56976d125dbc93bb99f (diff)
downloadmpv-17eaff1a38cfa5fc51520d6f9582ce3a62b867cf.tar.bz2
mpv-17eaff1a38cfa5fc51520d6f9582ce3a62b867cf.tar.xz
replace "g" asm constraint by "erm" since "g" allows 64bit immediates while
the operator (cmp) using the "g"-constrained operand doesn't support 64bit immediates. Original thread: date: Tue, Jun 2, 2009 at 11:31 AM subject: [PATCH] Fix MPlayer to compile on Darwin/x86_86 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29352 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpcodecs/vf_fspp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/vf_fspp.c b/libmpcodecs/vf_fspp.c
index bf322ad683..44bafb61bf 100644
--- a/libmpcodecs/vf_fspp.c
+++ b/libmpcodecs/vf_fspp.c
@@ -240,7 +240,7 @@ static void store_slice_mmx(uint8_t *dst, int16_t *src, long dst_stride, long sr
"jl 2b \n\t"
:
- : "m" (width), "m" (src_stride), "g" (od), "m" (dst_stride), "g" (end),
+ : "m" (width), "m" (src_stride), "erm" (od), "m" (dst_stride), "erm" (end),
"m" (log2_scale), "m" (src), "m" (dst) //input
: "%"REG_a, "%"REG_c, "%"REG_d, "%"REG_S, "%"REG_D
);
@@ -308,7 +308,7 @@ static void store_slice2_mmx(uint8_t *dst, int16_t *src, long dst_stride, long s
"jl 2b \n\t"
:
- : "m" (width), "m" (src_stride), "g" (od), "m" (dst_stride), "g" (end),
+ : "m" (width), "m" (src_stride), "erm" (od), "m" (dst_stride), "erm" (end),
"m" (log2_scale), "m" (src), "m" (dst) //input
: "%"REG_a, "%"REG_c, "%"REG_d, "%"REG_D, "%"REG_S
);