[FFmpeg-cvslog] r9019 - in trunk/libavcodec/bfin: config_bfin.h fdct_bfin.S idct_bfin.S pixels_bfin.S

gpoirier subversion
Sun May 13 22:19:22 CEST 2007


Author: gpoirier
Date: Sun May 13 22:19:22 2007
New Revision: 9019

Log:
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


Modified:
   trunk/libavcodec/bfin/config_bfin.h
   trunk/libavcodec/bfin/fdct_bfin.S
   trunk/libavcodec/bfin/idct_bfin.S
   trunk/libavcodec/bfin/pixels_bfin.S

Modified: trunk/libavcodec/bfin/config_bfin.h
==============================================================================
--- trunk/libavcodec/bfin/config_bfin.h	(original)
+++ trunk/libavcodec/bfin/config_bfin.h	Sun May 13 22:19:22 2007
@@ -39,8 +39,13 @@ DEFUN(put_pixels_clamped,mL1,
 #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
 

Modified: trunk/libavcodec/bfin/fdct_bfin.S
==============================================================================
--- trunk/libavcodec/bfin/fdct_bfin.S	(original)
+++ trunk/libavcodec/bfin/fdct_bfin.S	Sun May 13 22:19:22 2007
@@ -321,4 +321,5 @@ DEFUN(fdct,mL1,
         L3=0;
         (r7:4,p5:3) = [sp++];
         RTS;
+DEFUN_END(fdct)
 

Modified: trunk/libavcodec/bfin/idct_bfin.S
==============================================================================
--- trunk/libavcodec/bfin/idct_bfin.S	(original)
+++ trunk/libavcodec/bfin/idct_bfin.S	Sun May 13 22:19:22 2007
@@ -293,5 +293,6 @@ DEFUN(idct,mL1,
     (R7:4,P5:3)=[SP++];
     unlink;
     RTS;
+DEFUN_END(idct)
 
 

Modified: trunk/libavcodec/bfin/pixels_bfin.S
==============================================================================
--- trunk/libavcodec/bfin/pixels_bfin.S	(original)
+++ trunk/libavcodec/bfin/pixels_bfin.S	Sun May 13 22:19:22 2007
@@ -48,6 +48,7 @@ ppc$1: R2 = Max(R0, R4) (V)      || [I1+
 
     (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 @@ apc$3: R6 = BYTEOP3P(R1:0, R3:2) (LO)   
 
     (R7:4) = [SP++];
     RTS;
+DEFUN_END(add_pixels_clamped)
 
 
 /*
@@ -121,6 +123,7 @@ pp8$1:  DISALGNEXCPT                || R
 
         (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 @@ pp16$1:  DISALGNEXCPT                || 
         (r7:6) = [sp++];
         unlink;
         RTS;
+DEFUN_END(put_pixels16uc)
 
 
 
@@ -184,6 +188,7 @@ pp8$3:  DISALGNEXCPT                || R
 
         (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 @@ pp16$3: DISALGNEXCPT                || R
         (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 @@ LE$16O: DISALGNEXCPT                    
         (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 @@ LE$16OT:DISALGNEXCPT                    
         (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 @@ LE$8O:  DISALGNEXCPT                    
         (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 @@ DEFUN(diff_pixels,mL1,
         (r7:4) = [sp++];
         unlink;
         rts;
+DEFUN_END(put_pixels8_xy2_nornd)
 
 /*
     for (i = 0; i < 16; i++) {
@@ -504,6 +514,7 @@ LE$PS:  r6=r6+|+r4;
         (r7:4) = [sp++];
         unlink;
         rts;
+DEFUN_END(pix_sum)
 
 
 DEFUN(get_pixels,mL1,
@@ -528,6 +539,7 @@ gp8$1:  [I3++]=R5
 
         (r7:4) = [sp++];
         RTS;
+DEFUN_END(get_pixels)
 
 
 /* sad = sad16x16 (ubyte *mb, ubyte *refwin, srcwidth, refwinwidth, h) */
@@ -559,6 +571,7 @@ e$16:   SAA (R1:0,R3:2) (R)  || R0 = [I0
         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 @@ e$8:    DISALGNEXCPT         || R1 = [I0
         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 @@ _pix_norm1_blkfn_loopEnd:
         (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 @@ DEFUN(sse4,mL1,
         (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 @@ DEFUN(sse8,mL1,
         (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 @@ DEFUN(sse16,mL1,
         (r7:6) = [sp++];
         unlink;
         rts;
+DEFUN_END(sse16)
 
 




More information about the ffmpeg-cvslog mailing list