Mercurial > mplayer.hg
changeset 29195:a49f45515e08
Replace glibc-specific __WORDSIZE preprocessor check with HAVE_FAST_64BIT.
The latter is properly set by configure.
author | diego |
---|---|
date | Sat, 25 Apr 2009 19:09:54 +0000 |
parents | 3a157edc770d |
children | 6628f10220b1 |
files | libmpcodecs/vf_divtc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_divtc.c Sat Apr 25 18:43:35 2009 +0000 +++ b/libmpcodecs/vf_divtc.c Sat Apr 25 19:09:54 2009 +0000 @@ -128,7 +128,7 @@ 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 @@ 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);