[MPlayer-cvslog] r27699 - in trunk: configure libmpcodecs/vf_divtc.c

diego subversion at mplayerhq.hu
Sat Oct 4 12:16:48 CEST 2008


Author: diego
Date: Sat Oct  4 12:16:48 2008
New Revision: 27699

Log:
Remove word size check and macro and use __WORDSIZE directly instead.
It has been done this way in FFmpeg for years without any apparent ill effect.


Modified:
   trunk/configure
   trunk/libmpcodecs/vf_divtc.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sat Oct  4 12:16:48 2008
@@ -2927,17 +2927,6 @@ fi
 echores "$_fast_inttypes"
 
 
-echocheck "word size"
-_mp_wordsize="#undef MP_WORDSIZE"
-cat > $TMPC << EOF
-#include <stdio.h>
-#include <sys/types.h>
-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 <malloc.h>
@@ -8500,8 +8489,6 @@ $_def_confwin32
 /* Define this to any prefered value from 386 up to infinity with step 100 */
 #define __CPU__ $iproc
 
-$_mp_wordsize
-
 $_def_vcd
 
 #ifdef sun

Modified: trunk/libmpcodecs/vf_divtc.c
==============================================================================
--- trunk/libmpcodecs/vf_divtc.c	(original)
+++ trunk/libmpcodecs/vf_divtc.c	Sat Oct  4 12:16:48 2008
@@ -128,7 +128,7 @@ static unsigned int checksum_plane(unsig
    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 @@ 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 MP_WORDSIZE==64
+#if __WORDSIZE==64
       t=be2me_32((uint32_t)(wsum>>32^wsum));
 #else
       t=be2me_32(wsum);



More information about the MPlayer-cvslog mailing list