Replace glibc-specific __WORDSIZE preprocessor check with HAVE_FAST_64BIT.

The latter is properly set by configure.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29237 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2009-04-25 19:09:54 +00:00
parent ebbeef12db
commit aa169c6fe3
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ static unsigned int checksum_plane(unsigned char *p, unsigned char *z,
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(unsigned char *p, unsigned char *z,
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);