mirror of https://github.com/FFmpeg/FFmpeg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.7 KiB
55 lines
1.7 KiB
18 years ago
|
/*
|
||
|
* Copyright (C) 2007 Marc Hoffman <marc.hoffman@analog.com>
|
||
|
*
|
||
|
* This file is part of FFmpeg.
|
||
|
*
|
||
|
* FFmpeg is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* FFmpeg is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with FFmpeg; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||
|
*/
|
||
|
|
||
11 years ago
|
#ifndef AVUTIL_BFIN_ASM_H
|
||
|
#define AVUTIL_BFIN_ASM_H
|
||
17 years ago
|
|
||
15 years ago
|
#include "config.h"
|
||
|
|
||
17 years ago
|
#define mL3 .text
|
||
11 years ago
|
|
||
15 years ago
|
#if defined(__FDPIC__) && CONFIG_SRAM
|
||
18 years ago
|
#define mL1 .l1.text
|
||
11 years ago
|
#define SECTION_L1_DATA_A .section .l1.data.A,"aw",@progbits
|
||
|
#define SECTION_L1_DATA_B .section .l1.data.B,"aw",@progbits
|
||
17 years ago
|
#else
|
||
|
#define mL1 mL3
|
||
11 years ago
|
#define SECTION_L1_DATA_A
|
||
|
#define SECTION_L1_DATA_B .data
|
||
17 years ago
|
#endif
|
||
18 years ago
|
|
||
11 years ago
|
#define DEFUN(fname, where, interface) \
|
||
|
.section where; \
|
||
|
.global _ff_bfin_ ## fname; \
|
||
|
.type _ff_bfin_ ## fname, STT_FUNC; \
|
||
|
.align 8; \
|
||
|
_ff_bfin_ ## fname
|
||
18 years ago
|
|
||
18 years ago
|
#define DEFUN_END(fname) \
|
||
11 years ago
|
.size _ff_bfin_ ## fname, . - _ff_bfin_ ## fname
|
||
18 years ago
|
|
||
17 years ago
|
#ifdef __FDPIC__
|
||
11 years ago
|
#define RELOC(reg, got, obj) reg = [got + obj@GOT17M4]
|
||
17 years ago
|
#else
|
||
11 years ago
|
#define RELOC(reg, got, obj) reg.L = obj; reg.H = obj
|
||
17 years ago
|
#endif
|
||
18 years ago
|
|
||
11 years ago
|
#endif /* AVUTIL_BFIN_ASM_H */
|