Use HAVE_FAST_64BIT instead of nonstandard __WORDSIZE macro.

Originally committed as revision 27720 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
pull/126/head
Diego Biurrun 16 years ago
parent b0e047de15
commit 02a6a6eea4
  1. 5
      libswscale/rgb2rgb_template.c

@ -28,7 +28,6 @@
*/ */
#include <stddef.h> #include <stddef.h>
#include <inttypes.h> /* for __WORDSIZE */
#undef PREFETCH #undef PREFETCH
#undef MOVNTQ #undef MOVNTQ
@ -1584,7 +1583,7 @@ static inline void RENAME(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t *u
ysrc += lumStride; ysrc += lumStride;
dst += dstStride; dst += dstStride;
#elif __WORDSIZE >= 64 #elif HAVE_FAST_64BIT
int i; int i;
uint64_t *ldst = (uint64_t *) dst; uint64_t *ldst = (uint64_t *) dst;
const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
@ -1690,7 +1689,7 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u
#else #else
//FIXME adapt the Alpha ASM code from yv12->yuy2 //FIXME adapt the Alpha ASM code from yv12->yuy2
#if __WORDSIZE >= 64 #if HAVE_FAST_64BIT
int i; int i;
uint64_t *ldst = (uint64_t *) dst; uint64_t *ldst = (uint64_t *) dst;
const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;

Loading…
Cancel
Save