summaryrefslogtreecommitdiff
path: root/libavcodec/arm/jrevdct_arm.S
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-06-13 09:24:27 +0100
committerMans Rullgard <mans@mansr.com>2011-06-13 12:30:22 +0100
commit77cdfde73e91cdbcc82cdec6b8fec6f646b02782 (patch)
treebd8b688f110b2c943caafae687df2efcf01cf41a /libavcodec/arm/jrevdct_arm.S
parent5c46ad1da049f16e670d2549161c244c6ddd68ec (diff)
ARM: jrevdct_arm: misc cleanup
- use 'const' macro to define coeff table - add missing endfunc - remove superflous directives Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/jrevdct_arm.S')
-rw-r--r--libavcodec/arm/jrevdct_arm.S10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavcodec/arm/jrevdct_arm.S b/libavcodec/arm/jrevdct_arm.S
index 4fcf35101d..f7fd5c7bde 100644
--- a/libavcodec/arm/jrevdct_arm.S
+++ b/libavcodec/arm/jrevdct_arm.S
@@ -54,18 +54,15 @@
#define FIX_M_1_961570560_ID 40
#define FIX_M_2_562915447_ID 44
#define FIX_0xFFFF_ID 48
- .text
- .align
function ff_j_rev_dct_arm, export=1
stmdb sp!, { r4 - r12, lr } @ all callee saved regs
-
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 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:
ldrsh r0, [lr, # 0] @ r0 = 'd0'
ldrsh r2, [lr, # 2] @ r2 = 'd2'
@@ -370,9 +367,9 @@ the_end:
@ The end....
add sp, sp, #4
ldmia sp!, { r4 - r12, pc } @ restore callee saved regs and return
+endfunc
-const_array:
- .align
+const const_array
.word FIX_0_298631336
.word FIX_0_541196100
.word FIX_0_765366865
@@ -386,3 +383,4 @@ const_array:
.word FIX_M_1_961570560
.word FIX_M_2_562915447
.word FIX_0xFFFF
+endconst