1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-06 08:29:25 +02:00

bfin: Refactor duplicated assembly-related macros

This commit is contained in:
Diego Biurrun
2014-01-22 05:21:02 -08:00
parent e99af2a3b1
commit da785231ea
7 changed files with 24 additions and 68 deletions

View File

@@ -93,24 +93,10 @@ huge variation on the reference codes on Blackfin I guess it must have
to do with the memory system.
*/
#define mL3 .text
#if defined(__FDPIC__) && CONFIG_SRAM
#define mL1 .l1.text
#else
#define mL1 mL3
#endif
#include "libavutil/bfin/asm.h"
#define MEM 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
.text