MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / FASTDIV

Function FASTDIV

libavutil/arm/intmath.h:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29#if HAVE_ARMV6
30static inline av_const int FASTDIV(int a, int b)
31{
32 int r, t;
33 __asm__ volatile("cmp %3, #2 \n\t"
34 "ldr %1, [%4, %3, lsl #2] \n\t"
35 "lsrle %0, %2, #1 \n\t"
36 "smmulgt %0, %1, %2 \n\t"
37 : "=&r"(r), "=&r"(t) : "r"(a), "r"(b), "r"(ff_inverse));
38 return r;
39}
40#else
41static inline av_const int FASTDIV(int a, int b)
42{

Callers 8

ff_sqrtFunction · 0.85
decode_blockcodeFunction · 0.85
get_dcFunction · 0.85
msmpeg4_pred_dcFunction · 0.85
find_optimal_paramFunction · 0.85
ff_mpeg4_pred_dcFunction · 0.85
mpeg4_decode_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected