[MPlayer-dev-eng] [PATCH] fixed point faad, gnu assembler etc.
Rich Felker
dalias at aerifal.cx
Fri Apr 21 06:26:37 CEST 2006
On Thu, Apr 20, 2006 at 03:43:32PM +0800, Zuxy Meng wrote:
> Hi,
>
> 2006/4/20, Michael Niedermayer <michaelni at gmx.at>:
> > Hi
> >
> > On Wed, Apr 19, 2006 at 11:40:35PM -0400, Rich Felker wrote:
> > > On Wed, Apr 19, 2006 at 10:28:35PM +0200, Reimar Döffinger wrote:
> > > > +#elif defined(__GNUC__) && (defined (ARCH_X86) || defined(ARCH_X86_64))
> > > > +#define MUL_S(A,B,S) \
> > > > + __asm__ __volatile__ (\
> > > > + "imul %1 \n\t"\
> > > > + "shrd %%cl, %%edx, %%eax \n\t"\
> > >
> > > There is no such i386 opcode as shrd as far as I know....
> >
>
> Double shifts were added since i386.
OK I stand corrected. Michael's point about replacing %%cl with a
constant also stands. IIRC gcc inline asm has an input type for shift
constants which could be used here.
Rich
More information about the MPlayer-dev-eng
mailing list