diff options
author | Måns Rullgård <mans@mansr.com> | 2008-10-27 00:25:09 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-10-27 00:25:09 +0000 |
commit | c130bedc99346d644f71ff52b0c762c9bf8d38ec (patch) | |
tree | 7b7325347f537eed2b52d7c3ef26d6ea41cd8aff /libavcodec/armv4l/simple_idct_armv6.S | |
parent | c72ab301888952c317030f631c70a16ec83d800f (diff) | |
download | ffmpeg-c130bedc99346d644f71ff52b0c762c9bf8d38ec.tar.gz |
ARM: use new macros for assembler function labels
Originally committed as revision 15725 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/armv4l/simple_idct_armv6.S')
-rw-r--r-- | libavcodec/armv4l/simple_idct_armv6.S | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/libavcodec/armv4l/simple_idct_armv6.S b/libavcodec/armv4l/simple_idct_armv6.S index ab18c9f870..4f3330d223 100644 --- a/libavcodec/armv4l/simple_idct_armv6.S +++ b/libavcodec/armv4l/simple_idct_armv6.S @@ -21,6 +21,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "asm.S" + #define W1 22725 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */ #define W2 21407 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */ #define W3 19266 /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */ @@ -190,10 +192,7 @@ w57: .long W57 a1 = source a2 = dest */ - .align - .type idct_row_armv6, %function - .func idct_row_armv6 -idct_row_armv6: +function idct_row_armv6 str lr, [sp, #-4]! ldr lr, [a1, #12] /* lr = row[7,5] */ @@ -245,10 +244,7 @@ idct_row_armv6: a1 = source a2 = dest */ - .align - .type idct_col_armv6, %function - .func idct_col_armv6 -idct_col_armv6: +function idct_col_armv6 stmfd sp!, {a2, lr} ldr a3, [a1] /* a3 = row[2,0] */ @@ -276,10 +272,7 @@ idct_col_armv6: a2 = dest a3 = line size */ - .align - .type idct_col_put_armv6, %function - .func idct_col_put_armv6 -idct_col_put_armv6: +function idct_col_put_armv6 stmfd sp!, {a2, a3, lr} ldr a3, [a1] /* a3 = row[2,0] */ @@ -309,10 +302,7 @@ idct_col_put_armv6: a2 = dest a3 = line size */ - .align - .type idct_col_add_armv6, %function - .func idct_col_add_armv6 -idct_col_add_armv6: +function idct_col_add_armv6 stmfd sp!, {a2, a3, lr} ldr a3, [a1] /* a3 = row[2,0] */ @@ -393,12 +383,8 @@ idct_col_add_armv6: sub a1, a1, #(16*7) .endm - .align - .global ff_simple_idct_armv6 - .type ff_simple_idct_armv6, %function - .func ff_simple_idct_armv6 /* void ff_simple_idct_armv6(DCTELEM *data); */ -ff_simple_idct_armv6: +function ff_simple_idct_armv6, export=1 stmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, lr} sub sp, sp, #128 @@ -412,12 +398,8 @@ ff_simple_idct_armv6: ldmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc} .endfunc - .align - .global ff_simple_idct_add_armv6 - .type ff_simple_idct_add_armv6, %function - .func ff_simple_idct_add_armv6 /* ff_simple_idct_add_armv6(uint8_t *dest, int line_size, DCTELEM *data); */ -ff_simple_idct_add_armv6: +function ff_simple_idct_add_armv6, export=1 stmfd sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr} sub sp, sp, #128 @@ -433,12 +415,8 @@ ff_simple_idct_add_armv6: ldmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc} .endfunc - .align - .global ff_simple_idct_put_armv6 - .type ff_simple_idct_put_armv6, %function - .func ff_simple_idct_put_armv6 /* ff_simple_idct_put_armv6(uint8_t *dest, int line_size, DCTELEM *data); */ -ff_simple_idct_put_armv6: +function ff_simple_idct_put_armv6, export=1 stmfd sp!, {a1, a2, v1, v2, v3, v4, v5, v6, v7, fp, lr} sub sp, sp, #128 |