Commit 3b16c719 authored by Måns Rullgård's avatar Måns Rullgård

ARM: use rX register names in simple_idct_armv6.S

Originally committed as revision 16567 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 90993b38
...@@ -52,158 +52,158 @@ w57: .long W57 ...@@ -52,158 +52,158 @@ w57: .long W57
/* /*
Compute partial IDCT of single row. Compute partial IDCT of single row.
shift = left-shift amount shift = left-shift amount
a1 = source address r0 = source address
a3 = row[2,0] <= 2 cycles r2 = row[2,0] <= 2 cycles
a4 = row[3,1] r3 = row[3,1]
ip = w42 <= 2 cycles ip = w42 <= 2 cycles
Output in registers v1--v8 Output in registers r4--r11
*/ */
.macro idct_row shift .macro idct_row shift
ldr lr, [pc, #(w46-.-8)] /* lr = W4 | (W6 << 16) */ ldr lr, [pc, #(w46-.-8)] /* lr = W4 | (W6 << 16) */
mov a2, #(1<<(\shift-1)) mov r1, #(1<<(\shift-1))
smlad v1, a3, ip, a2 smlad r4, r2, ip, r1
smlsd v4, a3, ip, a2 smlsd r7, r2, ip, r1
ldr ip, [pc, #(w13-.-8)] /* ip = W1 | (W3 << 16) */ ldr ip, [pc, #(w13-.-8)] /* ip = W1 | (W3 << 16) */
ldr v7, [pc, #(w57-.-8)] /* v7 = W5 | (W7 << 16) */ ldr r10,[pc, #(w57-.-8)] /* r10 = W5 | (W7 << 16) */
smlad v2, a3, lr, a2 smlad r5, r2, lr, r1
smlsd v3, a3, lr, a2 smlsd r6, r2, lr, r1
smuad v5, a4, ip /* v5 = B0 = W1*row[1] + W3*row[3] */ smuad r8, r3, ip /* r8 = B0 = W1*row[1] + W3*row[3] */
smusdx fp, a4, v7 /* fp = B3 = W7*row[1] - W5*row[3] */ smusdx r11,r3, r10 /* r11 = B3 = W7*row[1] - W5*row[3] */
ldr lr, [a1, #12] /* lr = row[7,5] */ ldr lr, [r0, #12] /* lr = row[7,5] */
pkhtb a3, ip, v7, asr #16 /* a4 = W7 | (W3 << 16) */ pkhtb r2, ip, r10,asr #16 /* r3 = W7 | (W3 << 16) */
pkhbt a2, ip, v7, lsl #16 /* a2 = W1 | (W5 << 16) */ pkhbt r1, ip, r10,lsl #16 /* r1 = W1 | (W5 << 16) */
smusdx v6, a3, a4 /* v6 = -B1 = W7*row[3] - W3*row[1] */ smusdx r9, r2, r3 /* r9 = -B1 = W7*row[3] - W3*row[1] */
smlad v5, lr, v7, v5 /* B0 += W5*row[5] + W7*row[7] */ smlad r8, lr, r10,r8 /* B0 += W5*row[5] + W7*row[7] */
smusdx v7, a4, a2 /* v7 = B2 = W5*row[1] - W1*row[3] */ smusdx r10,r3, r1 /* r10 = B2 = W5*row[1] - W1*row[3] */
ldr a4, [pc, #(w42n-.-8)] /* a4 = -W4 | (-W2 << 16) */ ldr r3, [pc, #(w42n-.-8)] /* r3 = -W4 | (-W2 << 16) */
smlad v7, lr, a3, v7 /* B2 += W7*row[5] + W3*row[7] */ smlad r10,lr, r2, r10 /* B2 += W7*row[5] + W3*row[7] */
ldr a3, [a1, #4] /* a3 = row[6,4] */ ldr r2, [r0, #4] /* r2 = row[6,4] */
smlsdx fp, lr, ip, fp /* B3 += W3*row[5] - W1*row[7] */ smlsdx r11,lr, ip, r11 /* B3 += W3*row[5] - W1*row[7] */
ldr ip, [pc, #(w46-.-8)] /* ip = W4 | (W6 << 16) */ ldr ip, [pc, #(w46-.-8)] /* ip = W4 | (W6 << 16) */
smlad v6, lr, a2, v6 /* B1 -= W1*row[5] + W5*row[7] */ smlad r9, lr, r1, r9 /* B1 -= W1*row[5] + W5*row[7] */
smlad v2, a3, a4, v2 /* A1 += -W4*row[4] - W2*row[6] */ smlad r5, r2, r3, r5 /* A1 += -W4*row[4] - W2*row[6] */
smlsd v3, a3, a4, v3 /* A2 += -W4*row[4] + W2*row[6] */ smlsd r6, r2, r3, r6 /* A2 += -W4*row[4] + W2*row[6] */
smlad v1, a3, ip, v1 /* A0 += W4*row[4] + W6*row[6] */ smlad r4, r2, ip, r4 /* A0 += W4*row[4] + W6*row[6] */
smlsd v4, a3, ip, v4 /* A3 += W4*row[4] - W6*row[6] */ smlsd r7, r2, ip, r7 /* A3 += W4*row[4] - W6*row[6] */
.endm .endm
/* /*
Compute partial IDCT of half row. Compute partial IDCT of half row.
shift = left-shift amount shift = left-shift amount
a3 = row[2,0] r2 = row[2,0]
a4 = row[3,1] r3 = row[3,1]
ip = w42 ip = w42
Output in registers v1--v8 Output in registers r4--r11
*/ */
.macro idct_row4 shift .macro idct_row4 shift
ldr lr, [pc, #(w46-.-8)] /* lr = W4 | (W6 << 16) */ ldr lr, [pc, #(w46-.-8)] /* lr = W4 | (W6 << 16) */
ldr v7, [pc, #(w57-.-8)] /* v7 = W5 | (W7 << 16) */ ldr r10,[pc, #(w57-.-8)] /* r10 = W5 | (W7 << 16) */
mov a2, #(1<<(\shift-1)) mov r1, #(1<<(\shift-1))
smlad v1, a3, ip, a2 smlad r4, r2, ip, r1
smlsd v4, a3, ip, a2 smlsd r7, r2, ip, r1
ldr ip, [pc, #(w13-.-8)] /* ip = W1 | (W3 << 16) */ ldr ip, [pc, #(w13-.-8)] /* ip = W1 | (W3 << 16) */
smlad v2, a3, lr, a2 smlad r5, r2, lr, r1
smlsd v3, a3, lr, a2 smlsd r6, r2, lr, r1
smusdx fp, a4, v7 /* fp = B3 = W7*row[1] - W5*row[3] */ smusdx r11,r3, r10 /* r11 = B3 = W7*row[1] - W5*row[3] */
smuad v5, a4, ip /* v5 = B0 = W1*row[1] + W3*row[3] */ smuad r8, r3, ip /* r8 = B0 = W1*row[1] + W3*row[3] */
pkhtb a3, ip, v7, asr #16 /* a4 = W7 | (W3 << 16) */ pkhtb r2, ip, r10,asr #16 /* r3 = W7 | (W3 << 16) */
pkhbt a2, ip, v7, lsl #16 /* a2 = W1 | (W5 << 16) */ pkhbt r1, ip, r10,lsl #16 /* r1 = W1 | (W5 << 16) */
smusdx v6, a3, a4 /* v6 = -B1 = W7*row[3] - W3*row[1] */ smusdx r9, r2, r3 /* r9 = -B1 = W7*row[3] - W3*row[1] */
smusdx v7, a4, a2 /* v7 = B2 = W5*row[1] - W1*row[3] */ smusdx r10,r3, r1 /* r10 = B2 = W5*row[1] - W1*row[3] */
.endm .endm
/* /*
Compute final part of IDCT single row without shift. Compute final part of IDCT single row without shift.
Input in registers v1--v8 Input in registers r4--r11
Output in registers ip, v1--v3, lr, v5--v7 Output in registers ip, r4--r6, lr, r8--r10
*/ */
.macro idct_finish .macro idct_finish
add ip, v1, v5 /* a2 = A0 + B0 */ add ip, r4, r8 /* r1 = A0 + B0 */
sub lr, v1, v5 /* a3 = A0 - B0 */ sub lr, r4, r8 /* r2 = A0 - B0 */
sub v1, v2, v6 /* a3 = A1 + B1 */ sub r4, r5, r9 /* r2 = A1 + B1 */
add v5, v2, v6 /* a3 = A1 - B1 */ add r8, r5, r9 /* r2 = A1 - B1 */
add v2, v3, v7 /* a2 = A2 + B2 */ add r5, r6, r10 /* r1 = A2 + B2 */
sub v6, v3, v7 /* a2 = A2 - B2 */ sub r9, r6, r10 /* r1 = A2 - B2 */
add v3, v4, fp /* a3 = A3 + B3 */ add r6, r7, r11 /* r2 = A3 + B3 */
sub v7, v4, fp /* a3 = A3 - B3 */ sub r10,r7, r11 /* r2 = A3 - B3 */
.endm .endm
/* /*
Compute final part of IDCT single row. Compute final part of IDCT single row.
shift = right-shift amount shift = right-shift amount
Input/output in registers v1--v8 Input/output in registers r4--r11
*/ */
.macro idct_finish_shift shift .macro idct_finish_shift shift
add a4, v1, v5 /* a4 = A0 + B0 */ add r3, r4, r8 /* r3 = A0 + B0 */
sub a3, v1, v5 /* a3 = A0 - B0 */ sub r2, r4, r8 /* r2 = A0 - B0 */
mov v1, a4, asr #\shift mov r4, r3, asr #\shift
mov v5, a3, asr #\shift mov r8, r2, asr #\shift
sub a4, v2, v6 /* a4 = A1 + B1 */ sub r3, r5, r9 /* r3 = A1 + B1 */
add a3, v2, v6 /* a3 = A1 - B1 */ add r2, r5, r9 /* r2 = A1 - B1 */
mov v2, a4, asr #\shift mov r5, r3, asr #\shift
mov v6, a3, asr #\shift mov r9, r2, asr #\shift
add a4, v3, v7 /* a4 = A2 + B2 */ add r3, r6, r10 /* r3 = A2 + B2 */
sub a3, v3, v7 /* a3 = A2 - B2 */ sub r2, r6, r10 /* r2 = A2 - B2 */
mov v3, a4, asr #\shift mov r6, r3, asr #\shift
mov v7, a3, asr #\shift mov r10,r2, asr #\shift
add a4, v4, fp /* a4 = A3 + B3 */ add r3, r7, r11 /* r3 = A3 + B3 */
sub a3, v4, fp /* a3 = A3 - B3 */ sub r2, r7, r11 /* r2 = A3 - B3 */
mov v4, a4, asr #\shift mov r7, r3, asr #\shift
mov fp, a3, asr #\shift mov r11,r2, asr #\shift
.endm .endm
/* /*
Compute final part of IDCT single row, saturating results at 8 bits. Compute final part of IDCT single row, saturating results at 8 bits.
shift = right-shift amount shift = right-shift amount
Input/output in registers v1--v8 Input/output in registers r4--r11
*/ */
.macro idct_finish_shift_sat shift .macro idct_finish_shift_sat shift
add a4, v1, v5 /* a4 = A0 + B0 */ add r3, r4, r8 /* r3 = A0 + B0 */
sub ip, v1, v5 /* ip = A0 - B0 */ sub ip, r4, r8 /* ip = A0 - B0 */
usat v1, #8, a4, asr #\shift usat r4, #8, r3, asr #\shift
usat v5, #8, ip, asr #\shift usat r8, #8, ip, asr #\shift
sub a4, v2, v6 /* a4 = A1 + B1 */ sub r3, r5, r9 /* r3 = A1 + B1 */
add ip, v2, v6 /* ip = A1 - B1 */ add ip, r5, r9 /* ip = A1 - B1 */
usat v2, #8, a4, asr #\shift usat r5, #8, r3, asr #\shift
usat v6, #8, ip, asr #\shift usat r9, #8, ip, asr #\shift
add a4, v3, v7 /* a4 = A2 + B2 */ add r3, r6, r10 /* r3 = A2 + B2 */
sub ip, v3, v7 /* ip = A2 - B2 */ sub ip, r6, r10 /* ip = A2 - B2 */
usat v3, #8, a4, asr #\shift usat r6, #8, r3, asr #\shift
usat v7, #8, ip, asr #\shift usat r10,#8, ip, asr #\shift
add a4, v4, fp /* a4 = A3 + B3 */ add r3, r7, r11 /* r3 = A3 + B3 */
sub ip, v4, fp /* ip = A3 - B3 */ sub ip, r7, r11 /* ip = A3 - B3 */
usat v4, #8, a4, asr #\shift usat r7, #8, r3, asr #\shift
usat fp, #8, ip, asr #\shift usat r11,#8, ip, asr #\shift
.endm .endm
/* /*
Compute IDCT of single row, storing as column. Compute IDCT of single row, storing as column.
a1 = source r0 = source
a2 = dest r1 = dest
*/ */
function idct_row_armv6 function idct_row_armv6
str lr, [sp, #-4]! str lr, [sp, #-4]!
ldr lr, [a1, #12] /* lr = row[7,5] */ ldr lr, [r0, #12] /* lr = row[7,5] */
ldr ip, [a1, #4] /* ip = row[6,4] */ ldr ip, [r0, #4] /* ip = row[6,4] */
ldr a4, [a1, #8] /* a4 = row[3,1] */ ldr r3, [r0, #8] /* r3 = row[3,1] */
ldr a3, [a1] /* a3 = row[2,0] */ ldr r2, [r0] /* r2 = row[2,0] */
orrs lr, lr, ip orrs lr, lr, ip
cmpeq lr, a4 cmpeq lr, r3
cmpeq lr, a3, lsr #16 cmpeq lr, r2, lsr #16
beq 1f beq 1f
str a2, [sp, #-4]! str r1, [sp, #-4]!
ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */ ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */
cmp lr, #0 cmp lr, #0
beq 2f beq 2f
...@@ -213,140 +213,140 @@ function idct_row_armv6 ...@@ -213,140 +213,140 @@ function idct_row_armv6
2: idct_row4 ROW_SHIFT 2: idct_row4 ROW_SHIFT
3: ldr a2, [sp], #4 3: ldr r1, [sp], #4
idct_finish_shift ROW_SHIFT idct_finish_shift ROW_SHIFT
strh v1, [a2] strh r4, [r1]
strh v2, [a2, #(16*2)] strh r5, [r1, #(16*2)]
strh v3, [a2, #(16*4)] strh r6, [r1, #(16*4)]
strh v4, [a2, #(16*6)] strh r7, [r1, #(16*6)]
strh fp, [a2, #(16*1)] strh r11,[r1, #(16*1)]
strh v7, [a2, #(16*3)] strh r10,[r1, #(16*3)]
strh v6, [a2, #(16*5)] strh r9, [r1, #(16*5)]
strh v5, [a2, #(16*7)] strh r8, [r1, #(16*7)]
ldr pc, [sp], #4 ldr pc, [sp], #4
1: mov a3, a3, lsl #3 1: mov r2, r2, lsl #3
strh a3, [a2] strh r2, [r1]
strh a3, [a2, #(16*2)] strh r2, [r1, #(16*2)]
strh a3, [a2, #(16*4)] strh r2, [r1, #(16*4)]
strh a3, [a2, #(16*6)] strh r2, [r1, #(16*6)]
strh a3, [a2, #(16*1)] strh r2, [r1, #(16*1)]
strh a3, [a2, #(16*3)] strh r2, [r1, #(16*3)]
strh a3, [a2, #(16*5)] strh r2, [r1, #(16*5)]
strh a3, [a2, #(16*7)] strh r2, [r1, #(16*7)]
ldr pc, [sp], #4 ldr pc, [sp], #4
.endfunc .endfunc
/* /*
Compute IDCT of single column, read as row. Compute IDCT of single column, read as row.
a1 = source r0 = source
a2 = dest r1 = dest
*/ */
function idct_col_armv6 function idct_col_armv6
stmfd sp!, {a2, lr} stmfd sp!, {r1, lr}
ldr a3, [a1] /* a3 = row[2,0] */ ldr r2, [r0] /* r2 = row[2,0] */
ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */ ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */
ldr a4, [a1, #8] /* a4 = row[3,1] */ ldr r3, [r0, #8] /* r3 = row[3,1] */
idct_row COL_SHIFT idct_row COL_SHIFT
ldr a2, [sp], #4 ldr r1, [sp], #4
idct_finish_shift COL_SHIFT idct_finish_shift COL_SHIFT
strh v1, [a2] strh r4, [r1]
strh v2, [a2, #(16*1)] strh r5, [r1, #(16*1)]
strh v3, [a2, #(16*2)] strh r6, [r1, #(16*2)]
strh v4, [a2, #(16*3)] strh r7, [r1, #(16*3)]
strh fp, [a2, #(16*4)] strh r11,[r1, #(16*4)]
strh v7, [a2, #(16*5)] strh r10,[r1, #(16*5)]
strh v6, [a2, #(16*6)] strh r9, [r1, #(16*6)]
strh v5, [a2, #(16*7)] strh r8, [r1, #(16*7)]
ldr pc, [sp], #4 ldr pc, [sp], #4
.endfunc .endfunc
/* /*
Compute IDCT of single column, read as row, store saturated 8-bit. Compute IDCT of single column, read as row, store saturated 8-bit.
a1 = source r0 = source
a2 = dest r1 = dest
a3 = line size r2 = line size
*/ */
function idct_col_put_armv6 function idct_col_put_armv6
stmfd sp!, {a2, a3, lr} stmfd sp!, {r1, r2, lr}
ldr a3, [a1] /* a3 = row[2,0] */ ldr r2, [r0] /* r2 = row[2,0] */
ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */ ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */
ldr a4, [a1, #8] /* a4 = row[3,1] */ ldr r3, [r0, #8] /* r3 = row[3,1] */
idct_row COL_SHIFT idct_row COL_SHIFT
ldmfd sp!, {a2, a3} ldmfd sp!, {r1, r2}
idct_finish_shift_sat COL_SHIFT idct_finish_shift_sat COL_SHIFT
strb v1, [a2], a3 strb r4, [r1], r2
strb v2, [a2], a3 strb r5, [r1], r2
strb v3, [a2], a3 strb r6, [r1], r2
strb v4, [a2], a3 strb r7, [r1], r2
strb fp, [a2], a3 strb r11,[r1], r2
strb v7, [a2], a3 strb r10,[r1], r2
strb v6, [a2], a3 strb r9, [r1], r2
strb v5, [a2], a3 strb r8, [r1], r2
sub a2, a2, a3, lsl #3 sub r1, r1, r2, lsl #3
ldr pc, [sp], #4 ldr pc, [sp], #4
.endfunc .endfunc
/* /*
Compute IDCT of single column, read as row, add/store saturated 8-bit. Compute IDCT of single column, read as row, add/store saturated 8-bit.
a1 = source r0 = source
a2 = dest r1 = dest
a3 = line size r2 = line size
*/ */
function idct_col_add_armv6 function idct_col_add_armv6
stmfd sp!, {a2, a3, lr} stmfd sp!, {r1, r2, lr}
ldr a3, [a1] /* a3 = row[2,0] */ ldr r2, [r0] /* r2 = row[2,0] */
ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */ ldr ip, [pc, #(w42-.-8)] /* ip = W4 | (W2 << 16) */
ldr a4, [a1, #8] /* a4 = row[3,1] */ ldr r3, [r0, #8] /* r3 = row[3,1] */
idct_row COL_SHIFT idct_row COL_SHIFT
ldmfd sp!, {a2, a3} ldmfd sp!, {r1, r2}
idct_finish idct_finish
ldrb a4, [a2] ldrb r3, [r1]
ldrb v4, [a2, a3] ldrb r7, [r1, r2]
ldrb fp, [a2, a3, lsl #2] ldrb r11,[r1, r2, lsl #2]
add ip, a4, ip, asr #COL_SHIFT add ip, r3, ip, asr #COL_SHIFT
usat ip, #8, ip usat ip, #8, ip
add v1, v4, v1, asr #COL_SHIFT add r4, r7, r4, asr #COL_SHIFT
strb ip, [a2], a3 strb ip, [r1], r2
ldrb ip, [a2, a3] ldrb ip, [r1, r2]
usat v1, #8, v1 usat r4, #8, r4
ldrb fp, [a2, a3, lsl #2] ldrb r11,[r1, r2, lsl #2]
add v2, ip, v2, asr #COL_SHIFT add r5, ip, r5, asr #COL_SHIFT
usat v2, #8, v2 usat r5, #8, r5
strb v1, [a2], a3 strb r4, [r1], r2
ldrb a4, [a2, a3] ldrb r3, [r1, r2]
ldrb ip, [a2, a3, lsl #2] ldrb ip, [r1, r2, lsl #2]
strb v2, [a2], a3 strb r5, [r1], r2
ldrb v4, [a2, a3] ldrb r7, [r1, r2]
ldrb v1, [a2, a3, lsl #2] ldrb r4, [r1, r2, lsl #2]
add v3, a4, v3, asr #COL_SHIFT add r6, r3, r6, asr #COL_SHIFT
usat v3, #8, v3 usat r6, #8, r6
add v7, v4, v7, asr #COL_SHIFT add r10,r7, r10,asr #COL_SHIFT
usat v7, #8, v7 usat r10,#8, r10
add v6, fp, v6, asr #COL_SHIFT add r9, r11,r9, asr #COL_SHIFT
usat v6, #8, v6 usat r9, #8, r9
add v5, ip, v5, asr #COL_SHIFT add r8, ip, r8, asr #COL_SHIFT
usat v5, #8, v5 usat r8, #8, r8
add lr, v1, lr, asr #COL_SHIFT add lr, r4, lr, asr #COL_SHIFT
usat lr, #8, lr usat lr, #8, lr
strb v3, [a2], a3 strb r6, [r1], r2
strb v7, [a2], a3 strb r10,[r1], r2
strb v6, [a2], a3 strb r9, [r1], r2
strb v5, [a2], a3 strb r8, [r1], r2
strb lr, [a2], a3 strb lr, [r1], r2
sub a2, a2, a3, lsl #3 sub r1, r1, r2, lsl #3
ldr pc, [sp], #4 ldr pc, [sp], #4
.endfunc .endfunc
...@@ -358,76 +358,76 @@ function idct_col_add_armv6 ...@@ -358,76 +358,76 @@ function idct_col_add_armv6
*/ */
.macro idct_rows func width .macro idct_rows func width
bl \func bl \func
add a1, a1, #(16*2) add r0, r0, #(16*2)
add a2, a2, #\width add r1, r1, #\width
bl \func bl \func
add a1, a1, #(16*2) add r0, r0, #(16*2)
add a2, a2, #\width add r1, r1, #\width
bl \func bl \func
add a1, a1, #(16*2) add r0, r0, #(16*2)
add a2, a2, #\width add r1, r1, #\width
bl \func bl \func
sub a1, a1, #(16*5) sub r0, r0, #(16*5)
add a2, a2, #\width add r1, r1, #\width
bl \func bl \func
add a1, a1, #(16*2) add r0, r0, #(16*2)
add a2, a2, #\width add r1, r1, #\width
bl \func bl \func
add a1, a1, #(16*2) add r0, r0, #(16*2)
add a2, a2, #\width add r1, r1, #\width
bl \func bl \func
add a1, a1, #(16*2) add r0, r0, #(16*2)
add a2, a2, #\width add r1, r1, #\width
bl \func bl \func
sub a1, a1, #(16*7) sub r0, r0, #(16*7)
.endm .endm
/* void ff_simple_idct_armv6(DCTELEM *data); */ /* void ff_simple_idct_armv6(DCTELEM *data); */
function ff_simple_idct_armv6, export=1 function ff_simple_idct_armv6, export=1
stmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, lr} stmfd sp!, {r4-r11, lr}
sub sp, sp, #128 sub sp, sp, #128
mov a2, sp mov r1, sp
idct_rows idct_row_armv6, 2 idct_rows idct_row_armv6, 2
mov a2, a1 mov r1, r0
mov a1, sp mov r0, sp
idct_rows idct_col_armv6, 2 idct_rows idct_col_armv6, 2
add sp, sp, #128 add sp, sp, #128
ldmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc} ldmfd sp!, {r4-r11, pc}
.endfunc .endfunc
/* ff_simple_idct_add_armv6(uint8_t *dest, int line_size, DCTELEM *data); */ /* ff_simple_idct_add_armv6(uint8_t *dest, int line_size, DCTELEM *data); */
function ff_simple_idct_add_armv6, export=1 function ff_simple_idct_add_armv6, export=1
stmfd sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr} stmfd sp!, {r0, r1, r4-r11, lr}
sub sp, sp, #128 sub sp, sp, #128
mov a1, a3 mov r0, r2
mov a2, sp mov r1, sp
idct_rows idct_row_armv6, 2 idct_rows idct_row_armv6, 2
mov a1, sp mov r0, sp
ldr a2, [sp, #128] ldr r1, [sp, #128]
ldr a3, [sp, #(128+4)] ldr r2, [sp, #(128+4)]
idct_rows idct_col_add_armv6, 1 idct_rows idct_col_add_armv6, 1
add sp, sp, #(128+8) add sp, sp, #(128+8)
ldmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc} ldmfd sp!, {r4-r11, pc}
.endfunc .endfunc
/* ff_simple_idct_put_armv6(uint8_t *dest, int line_size, DCTELEM *data); */ /* ff_simple_idct_put_armv6(uint8_t *dest, int line_size, DCTELEM *data); */
function ff_simple_idct_put_armv6, export=1 function ff_simple_idct_put_armv6, export=1
stmfd sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr} stmfd sp!, {r0, r1, r4-r11, lr}
sub sp, sp, #128 sub sp, sp, #128
mov a1, a3 mov r0, r2
mov a2, sp mov r1, sp
idct_rows idct_row_armv6, 2 idct_rows idct_row_armv6, 2
mov a1, sp mov r0, sp
ldr a2, [sp, #128] ldr r1, [sp, #128]
ldr a3, [sp, #(128+4)] ldr r2, [sp, #(128+4)]
idct_rows idct_col_put_armv6, 1 idct_rows idct_col_put_armv6, 1
add sp, sp, #(128+8) add sp, sp, #(128+8)
ldmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc} ldmfd sp!, {r4-r11, pc}
.endfunc .endfunc
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