]> git.sesse.net Git - vlc/blobdiff - plugins/imdct/ac3_imdct_sse.c
* ALL: the first libvlc commit.
[vlc] / plugins / imdct / ac3_imdct_sse.c
index 002df6ff83a62a81f9a7dc04aea465ef7eb3aeed..56863afed34a4ed07cb1ae71487ce3e3c12ba321 100644 (file)
@@ -2,7 +2,7 @@
  * ac3_imdct_sse.c: accelerated SSE ac3 DCT
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: ac3_imdct_sse.c,v 1.8 2001/11/28 15:08:05 massiot Exp $
+ * $Id: ac3_imdct_sse.c,v 1.12 2002/06/01 12:31:59 sam Exp $
  *
  * Authors: Renaud Dartus <reno@videolan.org>
  *          Aaron Holtzman <aholtzma@engr.uvic.ca>
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#define MODULE_NAME imdctsse
-#include "modules_inner.h"
-
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include "defs.h"
-
 #include <math.h>
 #include <stdio.h>
 
-#include "config.h"
-#include "common.h"
+#include <vlc/vlc.h>
 
 #include "ac3_imdct.h"
 #include "ac3_imdct_common.h"
@@ -109,7 +103,7 @@ static void imdct512_pre_ifft_twiddle_sse (const int *pmt, complex_t *buf, float
     "movl $64, -4(%%ebp)\n"
     
     ".align 16\n"
-".loop:\n"
+"0:\n"
     "movl  (%%eax), %%esi\n"
     "movl 4(%%eax), %%edi\n"
     "movss (%%ecx, %%esi, 8), %%xmm1\n" /* 2j */
@@ -141,7 +135,7 @@ static void imdct512_pre_ifft_twiddle_sse (const int *pmt, complex_t *buf, float
     
     "movaps  %%xmm0, -16(%%ebx)\n"
     "decl    -4(%%ebp)\n"
-    "jnz     .loop\n"
+    "jnz     0b\n"
 
     "popl %%esi\n"
     "popl %%edi\n"
@@ -165,7 +159,7 @@ static void imdct512_post_ifft_twiddle_sse (complex_t *buf, float *xcos_sin_sse)
     "movl  $32, %%ebx\n"               /* loop counter */
 
     ".align 16\n"
-".loop1:\n"
+"0:\n"
     "movaps (%%eax), %%xmm0\n"         /*  im1 | re1 | im0 | re0 */
 
     "movaps (%%ecx), %%xmm2\n"         /* -c | -s | -s | c */
@@ -216,7 +210,7 @@ static void imdct512_post_ifft_twiddle_sse (complex_t *buf, float *xcos_sin_sse)
     "addl $64, %%ecx\n"
     "addl $32, %%eax\n"
     "decl %%ebx\n"
-    "jnz .loop1\n"
+    "jnz 0b\n"
 
     "popl %%ebx\n"
     : "=a" (buf)