[FFmpeg-devel] [PATCH] move h264 loopfilter strength code to yasm

Reimar Döffinger Reimar.Doeffinger
Fri Sep 24 22:28:05 CEST 2010

On Fri, Sep 24, 2010 at 04:10:17PM -0400, Ronald S. Bultje wrote:
> Hi,
> On Fri, Sep 24, 2010 at 3:30 PM, Alexander Strange
> <astrange at ithinksw.com> wrote:
> > "g" permits registers, so it could generate something like this:
> > ? por %rax(%rcx), %mm1
> >
> > You have to use "m" or MANGLE() in this situation.
> > Also, generating _d_idx(%rax) won't work on BROKEN_RELOCATIONS (x86-64 darwin) because all global references must be _d_idx(%rip).
> >
> > If you have a recent clang try compiling with that, it has a built-in assembler which may have clearer errors.
> > ?and which doesn't build ffmpeg because it doesn't know about 3dnow.
> No, no, I don't want registers, I want it to load as a constant, i.e.
> a static number. The register (later on) would be b_idx, so that I
> don't need separate regs for each variable, plus var+b_idx, plus
> var+b_idx+d_idx.

"i" is for constants, but d_idx is not a constant, not with PIC.
That's why the easiest and most reliable solution is to use MANGLE.

More information about the ffmpeg-devel mailing list