[MPlayer-cvslog] r29237 - trunk/libmpcodecs/vf_divtc.c
diego
subversion at mplayerhq.hu
Sat Apr 25 21:09:54 CEST 2009
Author: diego
Date: Sat Apr 25 21:09:54 2009
New Revision: 29237
Log:
Replace glibc-specific __WORDSIZE preprocessor check with HAVE_FAST_64BIT.
The latter is properly set by configure.
Modified:
trunk/libmpcodecs/vf_divtc.c
Modified: trunk/libmpcodecs/vf_divtc.c
==============================================================================
--- trunk/libmpcodecs/vf_divtc.c Sat Apr 25 20:43:35 2009 (r29236)
+++ trunk/libmpcodecs/vf_divtc.c Sat Apr 25 21:09:54 2009 (r29237)
@@ -128,7 +128,7 @@ static unsigned int checksum_plane(unsig
unsigned int shift;
uint32_t sum, t;
unsigned char *e, *e2;
-#if __WORDSIZE==64
+#if HAVE_FAST_64BIT
typedef uint64_t wsum_t;
#else
typedef uint32_t wsum_t;
@@ -143,7 +143,7 @@ static unsigned int checksum_plane(unsig
for(wsum=0, e2=e-sizeof(wsum_t)+1; p<e2; p+=sizeof(wsum_t))
wsum^=*(wsum_t *)p;
-#if __WORDSIZE==64
+#if HAVE_FAST_64BIT
t=be2me_32((uint32_t)(wsum>>32^wsum));
#else
t=be2me_32(wsum);
More information about the MPlayer-cvslog
mailing list