diff libmpcodecs/vf_divtc.c @ 27667:88dfab272467

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.
author diego
date Sat, 04 Oct 2008 10:16:48 +0000
parents 00fff9a3b735
children 08d18fe9da52
line wrap: on
line diff
--- 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<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);