diff rectangle.h @ 6506:b495c754c3e1 libavcodec

use HAVE_FAST_64BIT
author mru
date Mon, 17 Mar 2008 23:08:14 +0000
parents c531defb03ee
children f7cbb7733146
line wrap: on
line diff
--- a/rectangle.h	Mon Mar 17 21:00:30 2008 +0000
+++ b/rectangle.h	Mon Mar 17 23:08:14 2008 +0000
@@ -64,7 +64,7 @@
         *(uint32_t*)(p + 3*stride)= v;
     }else if(w==8){
     //gcc can't optimize 64bit math on x86_32
-#if defined(ARCH_X86_64) || (defined(MP_WORDSIZE) && MP_WORDSIZE >= 64)
+#ifdef HAVE_FAST_64BIT
         const uint64_t v= val*0x0100000001ULL;
         *(uint64_t*)(p + 0*stride)= v;
         if(h==1) return;