You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ARM: remove unnecessary volatile from inline asm
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
@@ -97,7 +97,7 @@ static inline av_const int MUL16(int ra, int rb)
|
|||||||
static inline av_const int mid_pred(int a, int b, int c)
|
static inline av_const int mid_pred(int a, int b, int c)
|
||||||
{
|
{
|
||||||
int m;
|
int m;
|
||||||
__asm__ volatile (
|
__asm__ (
|
||||||
"mov %0, %2 \n\t"
|
"mov %0, %2 \n\t"
|
||||||
"cmp %1, %2 \n\t"
|
"cmp %1, %2 \n\t"
|
||||||
"movgt %0, %1 \n\t"
|
"movgt %0, %1 \n\t"
|
||||||
|
@@ -31,7 +31,7 @@ static inline int vp56_rac_get_prob_armv6(VP56RangeCoder *c, int pr)
|
|||||||
unsigned high = c->high << shift;
|
unsigned high = c->high << shift;
|
||||||
unsigned bit;
|
unsigned bit;
|
||||||
|
|
||||||
__asm__ volatile ("adds %3, %3, %0 \n"
|
__asm__ ("adds %3, %3, %0 \n"
|
||||||
"cmpcs %7, %4 \n"
|
"cmpcs %7, %4 \n"
|
||||||
"ldrcsh %2, [%4], #2 \n"
|
"ldrcsh %2, [%4], #2 \n"
|
||||||
"rsb %0, %6, #256 \n"
|
"rsb %0, %6, #256 \n"
|
||||||
@@ -63,7 +63,7 @@ static inline int vp56_rac_get_prob_branchy_armv6(VP56RangeCoder *c, int pr)
|
|||||||
unsigned low;
|
unsigned low;
|
||||||
unsigned tmp;
|
unsigned tmp;
|
||||||
|
|
||||||
__asm__ volatile ("adds %3, %3, %0 \n"
|
__asm__ ("adds %3, %3, %0 \n"
|
||||||
"cmpcs %7, %4 \n"
|
"cmpcs %7, %4 \n"
|
||||||
"ldrcsh %2, [%4], #2 \n"
|
"ldrcsh %2, [%4], #2 \n"
|
||||||
"rsb %0, %6, #256 \n"
|
"rsb %0, %6, #256 \n"
|
||||||
|
Reference in New Issue
Block a user