summaryrefslogtreecommitdiff
path: root/libswscale/swscale-example.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-11-01 18:36:20 +0000
committerDiego Biurrun <diego@biurrun.de>2006-11-01 18:36:20 +0000
commit3d6a30d948f9a98da033527046299ae234c3e5a2 (patch)
treec9991ac1ffb017e397bc47247e5e3d9057beec38 /libswscale/swscale-example.c
parent3cd52279c98910972371723c0654facfe3a1b2d1 (diff)
downloadffmpeg-3d6a30d948f9a98da033527046299ae234c3e5a2.tar.gz
Use common define for x86_32 and x86_64.
Originally committed as revision 20592 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale-example.c')
-rw-r--r--libswscale/swscale-example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c
index c1ffc88369..40f04c7d09 100644
--- a/libswscale/swscale-example.c
+++ b/libswscale/swscale-example.c
@@ -119,7 +119,7 @@ static int doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcFormat
sws_scale(dstContext, src, srcStride, 0, srcH, dst, dstStride);
sws_scale(outContext, dst, dstStride, 0, dstH, out, refStride);
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#if defined(ARCH_X86)
asm volatile ("emms\n\t");
#endif
@@ -212,14 +212,14 @@ int main(int argc, char **argv){
rgb_data[ x + y*4*W]= random();
}
}
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#if defined(ARCH_X86)
sws_rgb2rgb_init(SWS_CPU_CAPS_MMX*0);
#else
sws_rgb2rgb_init(0);
#endif
sws_scale(sws, rgb_src, rgb_stride, 0, H , src, stride);
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
+#if defined(ARCH_X86)
asm volatile ("emms\n\t");
#endif