ARM: jrevdct_arm: simplify stack usage
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
13743c7ab0
commit
9776e25db9
@ -56,9 +56,7 @@
|
|||||||
#define FIX_0xFFFF_ID 48
|
#define FIX_0xFFFF_ID 48
|
||||||
|
|
||||||
function ff_j_rev_dct_arm, export=1
|
function ff_j_rev_dct_arm, export=1
|
||||||
push {r4 - r12, lr}
|
push {r0, r4 - r11, lr}
|
||||||
sub sp, sp, #4 @ reserve some space on the stack
|
|
||||||
str r0, [ sp ] @ save the DCT pointer to the stack
|
|
||||||
|
|
||||||
mov lr, r0 @ lr = pointer to the current row
|
mov lr, r0 @ lr = pointer to the current row
|
||||||
mov r12, #8 @ r12 = row-counter
|
mov r12, #8 @ r12 = row-counter
|
||||||
@ -208,7 +206,7 @@ end_of_row_loop:
|
|||||||
|
|
||||||
start_column_loop:
|
start_column_loop:
|
||||||
@ Start of column loop
|
@ Start of column loop
|
||||||
ldr lr, [ sp ]
|
pop {lr}
|
||||||
mov r12, #8
|
mov r12, #8
|
||||||
column_loop:
|
column_loop:
|
||||||
ldrsh r0, [lr, #( 0*8)] @ r0 = 'd0'
|
ldrsh r0, [lr, #( 0*8)] @ r0 = 'd0'
|
||||||
@ -365,8 +363,7 @@ empty_odd_column:
|
|||||||
|
|
||||||
the_end:
|
the_end:
|
||||||
@ The end....
|
@ The end....
|
||||||
add sp, sp, #4
|
pop {r4 - r11, pc}
|
||||||
pop {r4 - r12, pc}
|
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
const const_array
|
const const_array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user