Commit bb5d247f authored by mru's avatar mru

ARM: make FASTDIV() an inline function

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16193 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 80933140
...@@ -149,16 +149,13 @@ static inline av_const int FASTDIV(int a, int b) ...@@ -149,16 +149,13 @@ static inline av_const int FASTDIV(int a, int b)
return r; return r;
} }
#elif defined(ARCH_ARM) #elif defined(ARCH_ARM)
# define FASTDIV(a,b) \ static inline av_const int FASTDIV(int a, int b)
({\ {
int ret,dmy;\ int r, t;
__asm__ volatile(\ __asm__ volatile ("umull %1, %0, %2, %3"
"umull %1, %0, %2, %3"\ : "=&r"(r), "=&r"(t) : "r"(a), "r"(ff_inverse[b]));
:"=&r"(ret),"=&r"(dmy)\ return r;
:"r"(a),"r"(ff_inverse[b])\ }
);\
ret;\
})
#elif defined(CONFIG_FASTDIV) #elif defined(CONFIG_FASTDIV)
# define FASTDIV(a,b) ((uint32_t)((((uint64_t)a)*ff_inverse[b])>>32)) # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a)*ff_inverse[b])>>32))
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment