# HG changeset patch # User gpoirier # Date 1179087562 0 # Node ID 75bf61c6c385d6015d1993f54509e29466f61701 # Parent 743a8b12b7de101b0c0c15fdb80db668f7a5ee1d Blackfin DSP utilities: add DEFUN_END DEFUN_END macro adds the size information to the symbol table. This is introduces no functionnal change, it's only meant to simplify e.g. debugging Patch by Marc Hoffman %mmh A pleasantst P com% Original thread: Date: May 5, 2007 12:26 PM Subject: [FFmpeg-devel] PATCH Blackfin DSP utilities, DEFUN_END added diff -r 743a8b12b7de -r 75bf61c6c385 bfin/config_bfin.h --- a/bfin/config_bfin.h Sun May 13 16:32:32 2007 +0000 +++ b/bfin/config_bfin.h Sun May 13 20:19:22 2007 +0000 @@ -39,8 +39,13 @@ #define DEFUN(fname,where,interface) \ .section where; \ .global _ff_bfin_ ## fname ; \ + .type _ff_bfin_ ## fname, STT_FUNC; \ .align 8; \ _ff_bfin_ ## fname +#define DEFUN_END(fname) \ + .size _ff_bfin_ ## fname, . - _ff_bfin_ ## fname + + #endif diff -r 743a8b12b7de -r 75bf61c6c385 bfin/fdct_bfin.S --- a/bfin/fdct_bfin.S Sun May 13 16:32:32 2007 +0000 +++ b/bfin/fdct_bfin.S Sun May 13 20:19:22 2007 +0000 @@ -321,4 +321,5 @@ L3=0; (r7:4,p5:3) = [sp++]; RTS; +DEFUN_END(fdct) diff -r 743a8b12b7de -r 75bf61c6c385 bfin/idct_bfin.S --- a/bfin/idct_bfin.S Sun May 13 16:32:32 2007 +0000 +++ b/bfin/idct_bfin.S Sun May 13 20:19:22 2007 +0000 @@ -293,5 +293,6 @@ (R7:4,P5:3)=[SP++]; unlink; RTS; +DEFUN_END(idct) diff -r 743a8b12b7de -r 75bf61c6c385 bfin/pixels_bfin.S --- a/bfin/pixels_bfin.S Sun May 13 16:32:32 2007 +0000 +++ b/bfin/pixels_bfin.S Sun May 13 20:19:22 2007 +0000 @@ -48,6 +48,7 @@ (R7:4) = [SP++]; RTS; +DEFUN_END(put_pixels_clamped) DEFUN(add_pixels_clamped,mL1, (DCTELEM *block, uint8_t *dest, int line_size)): @@ -80,6 +81,7 @@ (R7:4) = [SP++]; RTS; +DEFUN_END(add_pixels_clamped) /* @@ -121,6 +123,7 @@ (r7:6) = [sp++]; RTS; +DEFUN_END(put_pixels8uc) DEFUN(put_pixels16uc,mL1, (uint8_t *block, const uint8_t *s0, const uint8_t *s1, @@ -155,6 +158,7 @@ (r7:6) = [sp++]; unlink; RTS; +DEFUN_END(put_pixels16uc) @@ -184,6 +188,7 @@ (r7:6) = [sp++]; RTS; +DEFUN_END(put_pixels8uc_nornd) DEFUN(put_pixels16uc_nornd,mL1, (uint8_t *block, const uint8_t *s0, const uint8_t *s1, @@ -217,6 +222,7 @@ (r7:6) = [sp++]; RTS; +DEFUN_END(put_pixels16uc_nornd) DEFUN(z_put_pixels16_xy2,mL1, (uint8_t *block, const uint8_t *s0, @@ -275,6 +281,7 @@ (r7:4) = [sp++]; unlink; rts; +DEFUN_END(z_put_pixels16_xy2) DEFUN(put_pixels16_xy2_nornd,mL1, (uint8_t *block, const uint8_t *s0, @@ -332,6 +339,7 @@ (r7:4) = [sp++]; unlink; rts; +DEFUN_END(put_pixels16_xy2_nornd) DEFUN(z_put_pixels8_xy2,mL1, (uint8_t *block, const uint8_t *s0, @@ -381,6 +389,7 @@ (r7:4) = [sp++]; unlink; rts; +DEFUN_END(z_put_pixels8_xy2) DEFUN(put_pixels8_xy2_nornd,mL1, (uint8_t *block, const uint8_t *s0, int line_size, int h)): @@ -458,6 +467,7 @@ (r7:4) = [sp++]; unlink; rts; +DEFUN_END(put_pixels8_xy2_nornd) /* for (i = 0; i < 16; i++) { @@ -504,6 +514,7 @@ (r7:4) = [sp++]; unlink; rts; +DEFUN_END(pix_sum) DEFUN(get_pixels,mL1, @@ -528,6 +539,7 @@ (r7:4) = [sp++]; RTS; +DEFUN_END(get_pixels) /* sad = sad16x16 (ubyte *mb, ubyte *refwin, srcwidth, refwinwidth, h) */ @@ -559,6 +571,7 @@ R0 = R2 + R3 ; unlink; RTS; +DEFUN_END(z_sad16x16) /* sad = sad8x8 (ubyte *mb, ubyte *refwin, int srcwidth, int refwinwidth, int h) */ /* 36 cycles */ @@ -586,6 +599,7 @@ R3=A1.L+A1.H, R2=A0.L+A0.H ; R0 = R2 + R3 ; RTS; +DEFUN_END(z_sad8x8) DEFUN(pix_norm1,mL1, (uint8_t * pix, int line_size)): @@ -629,6 +643,7 @@ (R7:4,P5:3)=[SP++]; RTS; +DEFUN_END(pix_norm1) DEFUN(sse4,mL1, (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)): @@ -655,6 +670,7 @@ (r7:6) = [sp++]; unlink; rts; +DEFUN_END(sse4) DEFUN(sse8,mL1, (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)): @@ -684,6 +700,7 @@ (r7:6) = [sp++]; unlink; rts; +DEFUN_END(sse8) DEFUN(sse16,mL1, (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)): @@ -719,5 +736,6 @@ (r7:6) = [sp++]; unlink; rts; +DEFUN_END(sse16)