changeset 27688:49d5420c5698

Use HAVE_FAST_64BIT instead of nonstandard __WORDSIZE macro.
author diego
date Sun, 05 Oct 2008 16:47:55 +0000
parents 2f1ba3093d7d
children d6ae24838f0f
files libswscale/rgb2rgb_template.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/rgb2rgb_template.c	Sun Oct 05 13:43:45 2008 +0000
+++ b/libswscale/rgb2rgb_template.c	Sun Oct 05 16:47:55 2008 +0000
@@ -28,7 +28,6 @@
  */
 
 #include <stddef.h>
-#include <inttypes.h> /* for __WORDSIZE */
 
 #undef PREFETCH
 #undef MOVNTQ
@@ -1584,7 +1583,7 @@
         ysrc += lumStride;
         dst += dstStride;
 
-#elif __WORDSIZE >= 64
+#elif HAVE_FAST_64BIT
         int i;
         uint64_t *ldst = (uint64_t *) dst;
         const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
@@ -1690,7 +1689,7 @@
 #else
 //FIXME adapt the Alpha ASM code from yv12->yuy2
 
-#if __WORDSIZE >= 64
+#if HAVE_FAST_64BIT
         int i;
         uint64_t *ldst = (uint64_t *) dst;
         const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;