[xiph-commits] r12440 - trunk/theora/lib/x86_32

j at svn.xiph.org j at svn.xiph.org
Tue Feb 6 08:36:30 PST 2007


Author: j
Date: 2007-02-06 08:36:26 -0800 (Tue, 06 Feb 2007)
New Revision: 12440

Modified:
   trunk/theora/lib/x86_32/dsp_mmx.c
   trunk/theora/lib/x86_32/dsp_mmxext.c
   trunk/theora/lib/x86_32/fdct_mmx.c
   trunk/theora/lib/x86_32/recon_mmx.c
Log:
USE_ASM is defined in config.h so only check for it after config.h is imported



Modified: trunk/theora/lib/x86_32/dsp_mmx.c
===================================================================
--- trunk/theora/lib/x86_32/dsp_mmx.c	2007-02-06 10:56:43 UTC (rev 12439)
+++ trunk/theora/lib/x86_32/dsp_mmx.c	2007-02-06 16:36:26 UTC (rev 12440)
@@ -15,13 +15,13 @@
 
  ********************************************************************/
 
-#if defined(USE_ASM)
-
 #include <stdlib.h>
 
 #include "codec_internal.h"
 #include "dsp.h"
 
+#if defined(USE_ASM)
+
 static const __attribute__ ((aligned(8),used)) ogg_int64_t V128 = 0x0080008000800080LL;
 
 #define DSP_OP_AVG(a,b) ((((int)(a)) + ((int)(b)))/2)

Modified: trunk/theora/lib/x86_32/dsp_mmxext.c
===================================================================
--- trunk/theora/lib/x86_32/dsp_mmxext.c	2007-02-06 10:56:43 UTC (rev 12439)
+++ trunk/theora/lib/x86_32/dsp_mmxext.c	2007-02-06 16:36:26 UTC (rev 12440)
@@ -15,13 +15,13 @@
 
  ********************************************************************/
 
-#if defined(USE_ASM)
-
 #include <stdlib.h>
 
 #include "codec_internal.h"
 #include "dsp.h"
 
+#if defined(USE_ASM)
+
 #define SAD_MMXEXT_LOOP \
  "  movq (%1), %%mm0             \n\t"	/* take 8 bytes */ \
  "  movq (%2), %%mm1             \n\t" \

Modified: trunk/theora/lib/x86_32/fdct_mmx.c
===================================================================
--- trunk/theora/lib/x86_32/fdct_mmx.c	2007-02-06 10:56:43 UTC (rev 12439)
+++ trunk/theora/lib/x86_32/fdct_mmx.c	2007-02-06 16:36:26 UTC (rev 12440)
@@ -13,12 +13,12 @@
 /* mmx fdct implementation */
 /* $Id$ */
 
-#if defined(USE_ASM)
-
 #include "theora/theora.h"
 #include "codec_internal.h"
 #include "dsp.h"
 
+#if defined(USE_ASM)
+
 static const __attribute__ ((aligned(8),used)) ogg_int64_t xC1S7 = 0x0fb15fb15fb15fb15LL;
 static const __attribute__ ((aligned(8),used)) ogg_int64_t xC2S6 = 0x0ec83ec83ec83ec83LL;
 static const __attribute__ ((aligned(8),used)) ogg_int64_t xC3S5 = 0x0d4dbd4dbd4dbd4dbLL;

Modified: trunk/theora/lib/x86_32/recon_mmx.c
===================================================================
--- trunk/theora/lib/x86_32/recon_mmx.c	2007-02-06 10:56:43 UTC (rev 12439)
+++ trunk/theora/lib/x86_32/recon_mmx.c	2007-02-06 16:36:26 UTC (rev 12440)
@@ -15,10 +15,10 @@
 
  ********************************************************************/
 
+#include "codec_internal.h"
+
 #if defined(USE_ASM)
 
-#include "codec_internal.h"
-
 static const __attribute__ ((aligned(8),used)) ogg_int64_t V128 = 0x8080808080808080LL;
 
 static void copy8x8__mmx (unsigned char *src,



More information about the commits mailing list