Mercurial > libavutil.hg
comparison internal.h @ 523:821a387baf9d libavutil
ARM: ARMv6 optimised FASTDIV
author | mru |
---|---|
date | Tue, 15 Jul 2008 19:06:18 +0000 |
parents | 0cb535363299 |
children | 27593a5d8acd |
comparison
equal
deleted
inserted
replaced
522:c0001e5c051f | 523:821a387baf9d |
---|---|
152 :"=d"(ret),"=a"(dmy)\ | 152 :"=d"(ret),"=a"(dmy)\ |
153 :"1"(a),"g"(ff_inverse[b])\ | 153 :"1"(a),"g"(ff_inverse[b])\ |
154 );\ | 154 );\ |
155 ret;\ | 155 ret;\ |
156 }) | 156 }) |
157 #elif defined(HAVE_ARMV6) | |
158 static inline av_const int FASTDIV(int a, int b) | |
159 { | |
160 int r; | |
161 asm volatile("smmul %0, %1, %2" : "=r"(r) : "r"(a), "r"(ff_inverse[b])); | |
162 return r; | |
163 } | |
157 #elif defined(ARCH_ARMV4L) | 164 #elif defined(ARCH_ARMV4L) |
158 # define FASTDIV(a,b) \ | 165 # define FASTDIV(a,b) \ |
159 ({\ | 166 ({\ |
160 int ret,dmy;\ | 167 int ret,dmy;\ |
161 asm volatile(\ | 168 asm volatile(\ |