[FFmpeg-cvslog] r21565 - in trunk/libavcodec/bfin: config_bfin.h dsputil_bfin.h fdct_bfin.S idct_bfin.S vp3_idct_bfin.S

mru subversion
Sun Jan 31 01:20:31 CET 2010


Author: mru
Date: Sun Jan 31 01:20:30 2010
New Revision: 21565

Log:
Blackfin: use SRAM only when CONFIG_SRAM is set

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

Modified: trunk/libavcodec/bfin/config_bfin.h
==============================================================================
--- trunk/libavcodec/bfin/config_bfin.h	Sun Jan 31 01:20:27 2010	(r21564)
+++ trunk/libavcodec/bfin/config_bfin.h	Sun Jan 31 01:20:30 2010	(r21565)
@@ -31,11 +31,13 @@ DEFUN(put_pixels_clamped,mL1,
 #ifndef AVCODEC_BFIN_CONFIG_BFIN_H
 #define AVCODEC_BFIN_CONFIG_BFIN_H
 
+#include "config.h"
+
 #ifndef DEFUN
 
 #define mL3 .text
 #ifndef mL1
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 #define mL1 .l1.text
 #else
 #define mL1 mL3

Modified: trunk/libavcodec/bfin/dsputil_bfin.h
==============================================================================
--- trunk/libavcodec/bfin/dsputil_bfin.h	Sun Jan 31 01:20:27 2010	(r21564)
+++ trunk/libavcodec/bfin/dsputil_bfin.h	Sun Jan 31 01:20:30 2010	(r21565)
@@ -24,7 +24,7 @@
 #ifndef AVCODEC_BFIN_DSPUTIL_BFIN_H
 #define AVCODEC_BFIN_DSPUTIL_BFIN_H
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 #define attribute_l1_text  __attribute__ ((l1_text))
 #define attribute_l1_data_b __attribute__((l1_data_B))
 #else

Modified: trunk/libavcodec/bfin/fdct_bfin.S
==============================================================================
--- trunk/libavcodec/bfin/fdct_bfin.S	Sun Jan 31 01:20:27 2010	(r21564)
+++ trunk/libavcodec/bfin/fdct_bfin.S	Sun Jan 31 01:20:30 2010	(r21565)
@@ -127,9 +127,10 @@ root:/u/ffmpeg/bhead/libavcodec>
 
 */
 
+#include "config.h"
 #include "config_bfin.h"
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 .section .l1.data.B,"aw", at progbits
 #else
 .data
@@ -138,7 +139,7 @@ root:/u/ffmpeg/bhead/libavcodec>
 dct_coeff:
 .short 0x5a82, 0x2d41, 0x187e, 0x3b21, 0x0c7c, 0x3ec5, 0x238e, 0x3537;
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 .section .l1.data.A,"aw", at progbits
 #endif
 .align 4

Modified: trunk/libavcodec/bfin/idct_bfin.S
==============================================================================
--- trunk/libavcodec/bfin/idct_bfin.S	Sun Jan 31 01:20:27 2010	(r21564)
+++ trunk/libavcodec/bfin/idct_bfin.S	Sun Jan 31 01:20:30 2010	(r21565)
@@ -55,9 +55,10 @@ IDCT BFINidct: 88.3 kdct/s
 
 */
 
+#include "config.h"
 #include "config_bfin.h"
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 .section .l1.data.B,"aw", at progbits
 #else
 .data
@@ -76,7 +77,7 @@ coefs:
 .short 0x18F9;           //cos(7pi/16)
 .short 0x7D8A;           //cos(pi/16)
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 .section .l1.data.A,"aw", at progbits
 #endif
 

Modified: trunk/libavcodec/bfin/vp3_idct_bfin.S
==============================================================================
--- trunk/libavcodec/bfin/vp3_idct_bfin.S	Sun Jan 31 01:20:27 2010	(r21564)
+++ trunk/libavcodec/bfin/vp3_idct_bfin.S	Sun Jan 31 01:20:30 2010	(r21565)
@@ -28,9 +28,10 @@ Registers Used  : A0, A1, R0-R7, I0-I3, 
 
 */
 
+#include "config.h"
 #include "config_bfin.h"
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 .section .l1.data.B,"aw", at progbits
 #else
 .data
@@ -49,7 +50,7 @@ coefs:
 .short 0x18F9;           //cos(7pi/16)
 .short 0x7D8A;           //cos(pi/16)
 
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
 .section .l1.data.A
 #endif
 



More information about the ffmpeg-cvslog mailing list