[FFmpeg-devel] [PATCH/RFC]Allow compilation without HAVE_6REGS

Michael Niedermayer michaelni at gmx.at
Sat Apr 19 03:25:24 CEST 2014


On Sat, Apr 19, 2014 at 12:18:34AM +0200, Carl Eugen Hoyos wrote:
> On Friday 18 April 2014 11:18:00 pm Michael Niedermayer wrote:
> > On Fri, Apr 18, 2014 at 08:00:32PM +0000, Carl Eugen Hoyos wrote:
> > > Michael Niedermayer <michaelni <at> gmx.at> writes:
> > > > On Fri, Apr 18, 2014 at 02:48:00PM +0000, Carl Eugen Hoyos wrote:
> > > > > Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
> > > > > > Attached patch is needed here for compilation without HAVE_6REGS
> > > >
> > > > should be ok if these all use 6 or more registers
> > >
> > > I am not sure which parameters must be counted:
> >
> > [...]
> >
> > > libavcodec/x86/cavsdsp.c QPEL_CAVS():
> > >     : "+a"(src), "+c"(dst), "+m"(h)
> > >     : "d"((x86_reg)srcStride), "S"((x86_reg)dstStride),
> > >
> > >       "m"(ff_pw_5), "m"(ff_pw_4)
> > >
> > >     : "memory"
> >
> > thats not 6
> 
> New patch attached.
> 
> > you could try to access the ff_pw* through
> > MANGLE & NAMED_CONSTRAINTS_ADD
> 
> Patch sent.
> 
> Thank you, Carl Eugen

>  libavcodec/x86/mathops.h          |    3 +++
>  libavcodec/x86/mpegaudiodsp.c     |    6 +++---
>  libavcodec/x86/mpegvideoenc.c     |   12 ++++++++++--
>  libavcodec/x86/snowdsp.c          |    6 ++++++
>  libavcodec/x86/vc1dsp_init.c      |    5 +++--
>  libavcodec/x86/vc1dsp_mmx.c       |    4 ++--
>  libavcodec/x86/vp3dsp_init.c      |    6 ++++--
>  libavcodec/x86/vp56_arith.h       |    2 +-
>  libavfilter/vf_noise.c            |    4 +++-
>  libswscale/x86/swscale_template.c |    6 ++++++
>  libswscale/x86/yuv2rgb.c          |   12 ++++++------
>  11 files changed, 47 insertions(+), 19 deletions(-)
> e4ffc167c8e8ff5fdeeebfd6947289deab7a7a41  patch6regs.diff
> diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h

should be ok assuming there are no new asm changed relative
to the last patch

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140419/dbf3dcd8/attachment.asc>


More information about the ffmpeg-devel mailing list