changeset 213:e80ad397d30e libavcodec

Cygwin's mangling by Felix Buenemann <atmosfear@users.sourceforge.net>
author nickols_k
date Sun, 20 Jan 2002 14:30:34 +0000
parents 80edc2aaff86
children 73df666cacc7
files common.h i386/simple_idct_mmx.c mangle.h
diffstat 3 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Sat Jan 19 17:01:03 2002 +0000
+++ b/common.h	Sun Jan 20 14:30:34 2002 +0000
@@ -4,7 +4,7 @@
 #define FFMPEG_VERSION_INT 0x000406
 #define FFMPEG_VERSION     "0.4.6"
 
-#if defined(WIN32) && !defined(__MINGW32__)
+#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
 #define CONFIG_WIN32
 #endif
 
--- a/i386/simple_idct_mmx.c	Sat Jan 19 17:01:03 2002 +0000
+++ b/i386/simple_idct_mmx.c	Sun Jan 20 14:30:34 2002 +0000
@@ -18,6 +18,7 @@
 
 #include <inttypes.h>
 #include "../dsputil.h"
+#include "../mangle.h"
 
 #define C0 23170 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
 #define C1 22725 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
@@ -345,7 +346,7 @@
 	"movq " #src4 ", %%mm1			\n\t" /* R6	R2	r6	r2 */\
 	"movq " #src1 ", %%mm2			\n\t" /* R3	R1	r3	r1 */\
 	"movq " #src5 ", %%mm3			\n\t" /* R7	R5	r7	r5 */\
-	"movq wm1010, %%mm4			\n\t"\
+	"movq "MANGLE(wm1010)", %%mm4		\n\t"\
 	"pand %%mm0, %%mm4			\n\t"\
 	"por %%mm1, %%mm4			\n\t"\
 	"por %%mm2, %%mm4			\n\t"\
@@ -419,7 +420,7 @@
 	"jmp 2f					\n\t"\
 	"1:					\n\t"\
 	"pslld $16, %%mm0			\n\t"\
-	"#paddd d40000, %%mm0			\n\t"\
+	"#paddd "MANGLE(d40000)", %%mm0		\n\t"\
 	"psrad $13, %%mm0			\n\t"\
 	"packssdw %%mm0, %%mm0			\n\t"\
 	"movq %%mm0, " #dst "			\n\t"\
@@ -453,7 +454,7 @@
 	"movq " #src4 ", %%mm1			\n\t" /* R6	R2	r6	r2 */\
 	"movq " #src1 ", %%mm2			\n\t" /* R3	R1	r3	r1 */\
 	"movq " #src5 ", %%mm3			\n\t" /* R7	R5	r7	r5 */\
-	"movq wm1010, %%mm4			\n\t"\
+	"movq "MANGLE(wm1010)", %%mm4		\n\t"\
 	"pand %%mm0, %%mm4			\n\t"\
 	"por %%mm1, %%mm4			\n\t"\
 	"por %%mm2, %%mm4			\n\t"\
@@ -527,7 +528,7 @@
 	"jmp 2f					\n\t"\
 	"1:					\n\t"\
 	"pslld $16, %%mm0			\n\t"\
-	"paddd d40000, %%mm0			\n\t"\
+	"paddd "MANGLE(d40000)", %%mm0		\n\t"\
 	"psrad $13, %%mm0			\n\t"\
 	"packssdw %%mm0, %%mm0			\n\t"\
 	"movq %%mm0, " #dst "			\n\t"\
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mangle.h	Sun Jan 20 14:30:34 2002 +0000
@@ -0,0 +1,2 @@
+#include "../mangle.h"
+