~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to mp3lib/dct36_3dnow.c

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 * Modified for use with MPlayer, for details see the changelog at
18
18
 * http://svn.mplayerhq.hu/mplayer/trunk/
19
 
 * $Id: dct36_3dnow.c 18786 2006-06-22 13:34:00Z diego $
 
19
 * $Id: dct36_3dnow.c 28152 2008-12-15 16:13:41Z reimar $
20
20
 *
21
21
 * Original disclaimer:
22
22
 *  The author of this program disclaim whole expressed or implied
29
29
 
30
30
#define real float /* ugly - but only way */
31
31
 
 
32
#include "config.h"
32
33
#include "mangle.h"
33
34
 
34
 
#ifdef __DCT36_OPTIMIZE_FOR_K7
 
35
#ifdef DCT36_OPTIMIZE_FOR_K7
35
36
void dct36_3dnowex(real *inbuf, real *o1,
36
37
    real *o2, real *wintab, real *tsbuf)
37
38
#else
39
40
    real *o2, real *wintab, real *tsbuf)
40
41
#endif
41
42
{
42
 
    __asm__ __volatile__(
 
43
    __asm__ volatile(
43
44
        "movq (%%eax),%%mm0\n\t"
44
45
        "movq 4(%%eax),%%mm1\n\t"
45
46
        "pfadd %%mm1,%%mm0\n\t"
171
172
        "movd 108(%%edx),%%mm6\n\t"
172
173
        "punpckldq 104(%%edx),%%mm6\n\t"
173
174
        "pfmul %%mm6,%%mm5\n\t"
174
 
#ifdef __DCT36_OPTIMIZE_FOR_K7
 
175
#ifdef DCT36_OPTIMIZE_FOR_K7
175
176
        "pswapd %%mm5,%%mm5\n\t"
176
177
        "movq %%mm5,32(%%ecx)\n\t"
177
178
#else