[MPlayer-dev-eng] AMD64 assembler support

Rich Felker dalias at aerifal.cx
Sat Jul 30 18:28:41 CEST 2005


On Sat, Jul 30, 2005 at 05:01:28PM +0100, Johan Groth wrote:
> Johan Groth wrote:
> >Hi,
> >I wonder if anyone has succesfully ported the liba52 assembler to AMD64? 
> >I managed to port the resampler and the downmixer but I got stumped on 
> >imdct. It segfaults because of a corrupted stack (the return address 
> >gets destroyed).
> 
> Hi again,
> I've managed to fix the liba52 assembler so AMD64 users can now enjoy 
> SSE optimized IMDCT transform.
> 
> ==========================================================================
> Opening audio decoder: [liba52] AC3 decoding with liba52
> Using SSE optimized IMDCT transform
> AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
> Using MMX optimized resampler
> AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
> Selected audio codec: [a52] afm:liba52 (AC3-liba52)
> ==========================================================================
> 
> I've attached a patch to fix this. The patch is against cvs (30/07/2005).
> 
> Regards,
> Johan

Please use REG_a, REG_b, etc. names like elsewhere in MPlayer, for
consistency. Using EAX, EBX, etc. for the macros is confusing because
those are the names of the 32bit registers, and on amd64 they'll be
defined to the 64bit regs..

Rich




More information about the MPlayer-dev-eng mailing list