mirror of https://github.com/mpv-player/mpv
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:
parent
ebbeef12db
commit
aa169c6fe3
|
@ -128,7 +128,7 @@ static unsigned int checksum_plane(unsigned char *p, unsigned char *z,
|
||||||
unsigned int shift;
|
unsigned int shift;
|
||||||
uint32_t sum, t;
|
uint32_t sum, t;
|
||||||
unsigned char *e, *e2;
|
unsigned char *e, *e2;
|
||||||
#if __WORDSIZE==64
|
#if HAVE_FAST_64BIT
|
||||||
typedef uint64_t wsum_t;
|
typedef uint64_t wsum_t;
|
||||||
#else
|
#else
|
||||||
typedef uint32_t wsum_t;
|
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))
|
for(wsum=0, e2=e-sizeof(wsum_t)+1; p<e2; p+=sizeof(wsum_t))
|
||||||
wsum^=*(wsum_t *)p;
|
wsum^=*(wsum_t *)p;
|
||||||
|
|
||||||
#if __WORDSIZE==64
|
#if HAVE_FAST_64BIT
|
||||||
t=be2me_32((uint32_t)(wsum>>32^wsum));
|
t=be2me_32((uint32_t)(wsum>>32^wsum));
|
||||||
#else
|
#else
|
||||||
t=be2me_32(wsum);
|
t=be2me_32(wsum);
|
||||||
|
|
Loading…
Reference in New Issue