[MPlayer-dev-eng] Need help with inline assembly

Anders Johansson ajh at atri.curtin.edu.au
Wed Jan 30 13:01:29 CET 2002


Hi, 

Trying to solve a strange problem: I am working on assembly
optimisations for the audio resampling plugin. I have the algorithm
implemented and working (I have tested it in another program), but as
soon as I enable it in mplayer the synchronisation between sound and
video disappears. The smallest piece of code that can reproduce the
error is:

    int x;
    __asm __volatile("movq %0, %%mm0 \n\t" : :"m"((x)));

If this piece of code is included anywhere (in mplayer.c for example)
the synchronisation between sound and video disappears (sometimes it
just crashes).

I am guessing compiler switch or directive. 
My processor is a P3 with gcc 2.95.4.

Would be happy for any type of assistance, thank you in advance,
//Anders



More information about the MPlayer-dev-eng mailing list