Skip to content

Commit 2ec6c48

Browse files
mansrmstorsjo
authored andcommitted
stagefright aacenc: Remove useless inline asm for simple right shift
Change-Id: If1f40e9c16952182e974af1c86a14995259c2ade
1 parent d55da5d commit 2ec6c48

File tree

1 file changed

+1
-7
lines changed
  • media/libstagefright/codecs/aacenc/basic_op

1 file changed

+1
-7
lines changed

media/libstagefright/codecs/aacenc/basic_op/basic_op.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,7 @@ Word32 L_shr_r (Word32 L_var1, Word16 var2);
227227
#if ARMV4_INASM
228228
__inline Word32 ASM_L_shr(Word32 L_var1, Word16 var2)
229229
{
230-
Word32 result;
231-
asm (
232-
"MOV %[result], %[L_var1], ASR %[var2] \n"
233-
:[result]"=r"(result)
234-
:[L_var1]"r"(L_var1), [var2]"r"(var2)
235-
);
236-
return result;
230+
return L_var1 >> var2;
237231
}
238232

239233
__inline Word32 ASM_L_shl(Word32 L_var1, Word16 var2)

0 commit comments

Comments
 (0)