• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/bfin/config_bfin.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2007 Marc Hoffman <marc.hoffman@analog.com>
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * FFmpeg is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with FFmpeg; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 /*
00021    low level assembler interface wrapper
00022 
00023 DEFUN(put_pixels_clamped,mL1,
00024         (DCTELEM *block, uint8_t *dest, int line_size)):
00025 
00026       body
00027 
00028       rts;
00029 */
00030 
00031 #ifndef AVCODEC_BFIN_CONFIG_BFIN_H
00032 #define AVCODEC_BFIN_CONFIG_BFIN_H
00033 
00034 #include "config.h"
00035 
00036 #ifndef DEFUN
00037 
00038 #define mL3 .text
00039 #ifndef mL1
00040 #if defined(__FDPIC__) && CONFIG_SRAM
00041 #define mL1 .l1.text
00042 #else
00043 #define mL1 mL3
00044 #endif
00045 #endif
00046 
00047 #define DEFUN(fname,where,interface) \
00048         .section where;              \
00049         .global _ff_bfin_ ## fname ; \
00050         .type _ff_bfin_ ## fname, STT_FUNC; \
00051         .align 8;                    \
00052         _ff_bfin_ ## fname
00053 
00054 #define DEFUN_END(fname) \
00055         .size _ff_bfin_ ## fname, . - _ff_bfin_ ## fname
00056 
00057 #ifdef __FDPIC__
00058 #define RELOC(reg,got,obj) reg = [got + obj@GOT17M4]
00059 #else
00060 #define RELOC(reg,got,obj) reg.L = obj; reg.H = obj
00061 #endif
00062 
00063 #endif
00064 
00065 #endif /* AVCODEC_BFIN_CONFIG_BFIN_H */

Generated on Fri Sep 16 2011 17:17:34 for FFmpeg by  doxygen 1.7.1