mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 03:13:18 +00:00
ARM: ARMv6 optimised FASTDIV
Originally committed as revision 14242 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
de0e19cc38
commit
6651ce17b8
@ -154,6 +154,13 @@ extern const uint32_t ff_inverse[256];
|
|||||||
);\
|
);\
|
||||||
ret;\
|
ret;\
|
||||||
})
|
})
|
||||||
|
#elif defined(HAVE_ARMV6)
|
||||||
|
static inline av_const int FASTDIV(int a, int b)
|
||||||
|
{
|
||||||
|
int r;
|
||||||
|
asm volatile("smmul %0, %1, %2" : "=r"(r) : "r"(a), "r"(ff_inverse[b]));
|
||||||
|
return r;
|
||||||
|
}
|
||||||
#elif defined(ARCH_ARMV4L)
|
#elif defined(ARCH_ARMV4L)
|
||||||
# define FASTDIV(a,b) \
|
# define FASTDIV(a,b) \
|
||||||
({\
|
({\
|
||||||
|
Loading…
Reference in New Issue
Block a user