# HG changeset patch # User diego # Date 1223115408 0 # Node ID 88dfab2724670ef50d49b2c50a43174fbb724bb7 # Parent 9936b7fa9e637480976fa3d96c60fb0404fb8b7a Remove word size check and macro and use __WORDSIZE directly instead. It has been done this way in libswscale for years without apparent ill effect. diff -r 9936b7fa9e63 -r 88dfab272467 configure --- a/configure Sat Oct 04 09:52:07 2008 +0000 +++ b/configure Sat Oct 04 10:16:48 2008 +0000 @@ -2927,17 +2927,6 @@ echores "$_fast_inttypes" -echocheck "word size" -_mp_wordsize="#undef MP_WORDSIZE" -cat > $TMPC << EOF -#include -#include -int main(void) { printf("%d\n", sizeof(size_t)*8); return 0; } -EOF -cc_check && _wordsize=`$TMPEXE` && _mp_wordsize="#define MP_WORDSIZE $_wordsize" -echores "$_wordsize" - - echocheck "malloc.h" cat > $TMPC << EOF #include @@ -8500,8 +8489,6 @@ /* Define this to any prefered value from 386 up to infinity with step 100 */ #define __CPU__ $iproc -$_mp_wordsize - $_def_vcd #ifdef sun diff -r 9936b7fa9e63 -r 88dfab272467 libmpcodecs/vf_divtc.c --- a/libmpcodecs/vf_divtc.c Sat Oct 04 09:52:07 2008 +0000 +++ b/libmpcodecs/vf_divtc.c Sat Oct 04 10:16:48 2008 +0000 @@ -128,7 +128,7 @@ unsigned int shift; uint32_t sum, t; unsigned char *e, *e2; -#if MP_WORDSIZE==64 +#if __WORDSIZE==64 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>32^wsum)); #else t=be2me_32(wsum);