[MPlayer-dev-eng] [PATCH] Rewrite synth_1to1_MMX, paving the way toward x86-64

Guillaume POIRIER poirierg at gmail.com
Thu May 17 21:14:57 CEST 2007


Hi,

On 5/17/07, Zuxy Meng <zuxy.meng at gmail.com> wrote:
> Hi,
>
> The original version of synth_1to1_MMX hardcoded 32-bit pointers and
> x86 ABI, making it difficult to port to x86-64. I rewrote the general
> code in C and removed hardcoded 32-bit registers in the remaining MMX
> code (therefore obsoleting my previous patch to align the stack
> manually). The result is not only easier to port but also faster:
>
> (Tested with rdtsc on a Dothan)
> before: 1019 cycles
> after: 976 cycles
>
> Of course the decoded result is identical.

I have no problem with the content of the patch, however, this patch
has to be splitted in 2 parts, if that's manageable: the one that
changes the ASM from hardcoded regs to %num, then the rest of the
changes.

Guillaume
-- 
Rich, you're forgetting one thing here: *everybody* except you is
stupid.
    Måns Rullgård


More information about the MPlayer-dev-eng mailing list