Mercurial > libavcodec.hg
comparison rectangle.h @ 6506:b495c754c3e1 libavcodec
use HAVE_FAST_64BIT
author | mru |
---|---|
date | Mon, 17 Mar 2008 23:08:14 +0000 |
parents | c531defb03ee |
children | f7cbb7733146 |
comparison
equal
deleted
inserted
replaced
6505:3ce9c8fbdd81 | 6506:b495c754c3e1 |
---|---|
62 if(h==2) return; | 62 if(h==2) return; |
63 *(uint32_t*)(p + 2*stride)= v; | 63 *(uint32_t*)(p + 2*stride)= v; |
64 *(uint32_t*)(p + 3*stride)= v; | 64 *(uint32_t*)(p + 3*stride)= v; |
65 }else if(w==8){ | 65 }else if(w==8){ |
66 //gcc can't optimize 64bit math on x86_32 | 66 //gcc can't optimize 64bit math on x86_32 |
67 #if defined(ARCH_X86_64) || (defined(MP_WORDSIZE) && MP_WORDSIZE >= 64) | 67 #ifdef HAVE_FAST_64BIT |
68 const uint64_t v= val*0x0100000001ULL; | 68 const uint64_t v= val*0x0100000001ULL; |
69 *(uint64_t*)(p + 0*stride)= v; | 69 *(uint64_t*)(p + 0*stride)= v; |
70 if(h==1) return; | 70 if(h==1) return; |
71 *(uint64_t*)(p + 1*stride)= v; | 71 *(uint64_t*)(p + 1*stride)= v; |
72 if(h==2) return; | 72 if(h==2) return; |