diff options
author | Mans Rullgard <mans@mansr.com> | 2011-06-13 09:33:20 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-06-13 12:30:22 +0100 |
commit | 9776e25db9a43e77e9b091c012bf16267d9559d7 (patch) | |
tree | 09d931ab6f14748e1450b773f37f7914142288d2 /libavcodec/arm/jrevdct_arm.S | |
parent | 13743c7ab00be270a3a38c8ee6442336774e335c (diff) | |
download | ffmpeg-9776e25db9a43e77e9b091c012bf16267d9559d7.tar.gz |
ARM: jrevdct_arm: simplify stack usage
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/jrevdct_arm.S')
-rw-r--r-- | libavcodec/arm/jrevdct_arm.S | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libavcodec/arm/jrevdct_arm.S b/libavcodec/arm/jrevdct_arm.S index 08d42d7758..93cbbbe8eb 100644 --- a/libavcodec/arm/jrevdct_arm.S +++ b/libavcodec/arm/jrevdct_arm.S @@ -56,9 +56,7 @@ #define FIX_0xFFFF_ID 48 function ff_j_rev_dct_arm, export=1 - push {r4 - r12, lr} - sub sp, sp, #4 @ reserve some space on the stack - str r0, [ sp ] @ save the DCT pointer to the stack + push {r0, r4 - r11, lr} mov lr, r0 @ lr = pointer to the current row mov r12, #8 @ r12 = row-counter @@ -208,7 +206,7 @@ end_of_row_loop: start_column_loop: @ Start of column loop - ldr lr, [ sp ] + pop {lr} mov r12, #8 column_loop: ldrsh r0, [lr, #( 0*8)] @ r0 = 'd0' @@ -365,8 +363,7 @@ empty_odd_column: the_end: @ The end.... - add sp, sp, #4 - pop {r4 - r12, pc} + pop {r4 - r11, pc} endfunc const const_array |