Commit 77cdfde7 authored by Mans Rullgard's avatar Mans Rullgard

ARM: jrevdct_arm: misc cleanup

- use 'const' macro to define coeff table
- add missing endfunc
- remove superflous directives
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 5c46ad1d
...@@ -54,18 +54,15 @@ ...@@ -54,18 +54,15 @@
#define FIX_M_1_961570560_ID 40 #define FIX_M_1_961570560_ID 40
#define FIX_M_2_562915447_ID 44 #define FIX_M_2_562915447_ID 44
#define FIX_0xFFFF_ID 48 #define FIX_0xFFFF_ID 48
.text
.align
function ff_j_rev_dct_arm, export=1 function ff_j_rev_dct_arm, export=1
stmdb sp!, { r4 - r12, lr } @ all callee saved regs stmdb sp!, { r4 - r12, lr } @ all callee saved regs
sub sp, sp, #4 @ reserve some space on the stack sub sp, sp, #4 @ reserve some space on the stack
str r0, [ sp ] @ save the DCT pointer to 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
adr r11, const_array @ r11 = base pointer to the constants array movrel r11, const_array @ r11 = base pointer to the constants array
row_loop: row_loop:
ldrsh r0, [lr, # 0] @ r0 = 'd0' ldrsh r0, [lr, # 0] @ r0 = 'd0'
ldrsh r2, [lr, # 2] @ r2 = 'd2' ldrsh r2, [lr, # 2] @ r2 = 'd2'
...@@ -370,9 +367,9 @@ the_end: ...@@ -370,9 +367,9 @@ the_end:
@ The end.... @ The end....
add sp, sp, #4 add sp, sp, #4
ldmia sp!, { r4 - r12, pc } @ restore callee saved regs and return ldmia sp!, { r4 - r12, pc } @ restore callee saved regs and return
endfunc
const_array: const const_array
.align
.word FIX_0_298631336 .word FIX_0_298631336
.word FIX_0_541196100 .word FIX_0_541196100
.word FIX_0_765366865 .word FIX_0_765366865
...@@ -386,3 +383,4 @@ const_array: ...@@ -386,3 +383,4 @@ const_array:
.word FIX_M_1_961570560 .word FIX_M_1_961570560
.word FIX_M_2_562915447 .word FIX_M_2_562915447
.word FIX_0xFFFF .word FIX_0xFFFF
endconst
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