1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

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
This commit is contained in:
gpoirier 2009-06-07 14:42:43 +00:00
parent 825adf684d
commit 17eaff1a38

View File

@ -240,7 +240,7 @@ static void store_slice_mmx(uint8_t *dst, int16_t *src, long dst_stride, long sr
"jl 2b \n\t" "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 "m" (log2_scale), "m" (src), "m" (dst) //input
: "%"REG_a, "%"REG_c, "%"REG_d, "%"REG_S, "%"REG_D : "%"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" "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 "m" (log2_scale), "m" (src), "m" (dst) //input
: "%"REG_a, "%"REG_c, "%"REG_d, "%"REG_D, "%"REG_S : "%"REG_a, "%"REG_c, "%"REG_d, "%"REG_D, "%"REG_S
); );