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

Function FASTDIV

libavcodec/arm/mathops.h:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40#define FASTDIV FASTDIV
41static av_always_inline av_const int FASTDIV(int a, int b)
42{
43 int r;
44 __asm__ ("cmp %2, #2 \n\t"
45 "ldr %0, [%3, %2, lsl #2] \n\t"
46 "ite le \n\t"
47 "lsrle %0, %1, #1 \n\t"
48 "smmulgt %0, %0, %1 \n\t"
49 : "=&r"(r) : "r"(a), "r"(b), "r"(ff_inverse) : "cc");
50 return r;
51}
52
53#else /* HAVE_ARMV6_INLINE */
54

Callers 10

unpack_bitstreamFunction · 0.85
ff_sqrtFunction · 0.85
get_dcFunction · 0.85
ff_msmpeg4_pred_dcFunction · 0.85
mpeg4_get_level_dcFunction · 0.85
mpeg4_decode_blockFunction · 0.85
decode_blockcodesFunction · 0.85
adapt_probFunction · 0.85
mpeg4_encode_mbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected