annotate libavcodec/arm/asm.S @ 9:ea1ba68cf0ed

update to match api changes + add sscc produced source
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Wed, 05 Jun 2013 14:43:26 +0200
parents
children
rev   line source
nengel@2 1 /*
nengel@2 2 * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
nengel@2 3 *
nengel@2 4 * This file is part of FFmpeg.
nengel@2 5 *
nengel@2 6 * FFmpeg is free software; you can redistribute it and/or
nengel@2 7 * modify it under the terms of the GNU Lesser General Public
nengel@2 8 * License as published by the Free Software Foundation; either
nengel@2 9 * version 2.1 of the License, or (at your option) any later version.
nengel@2 10 *
nengel@2 11 * FFmpeg is distributed in the hope that it will be useful,
nengel@2 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nengel@2 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
nengel@2 14 * Lesser General Public License for more details.
nengel@2 15 *
nengel@2 16 * You should have received a copy of the GNU Lesser General Public
nengel@2 17 * License along with FFmpeg; if not, write to the Free Software
nengel@2 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
nengel@2 19 */
nengel@2 20
nengel@2 21 #include "config.h"
nengel@2 22
nengel@2 23 #ifdef __ELF__
nengel@2 24 # define ELF
nengel@2 25 #else
nengel@2 26 # define ELF @
nengel@2 27 #endif
nengel@2 28
nengel@2 29 .macro require8, val=1
nengel@2 30 ELF .eabi_attribute 24, \val
nengel@2 31 .endm
nengel@2 32
nengel@2 33 .macro preserve8, val=1
nengel@2 34 ELF .eabi_attribute 25, \val
nengel@2 35 .endm
nengel@2 36
nengel@2 37 .macro function name, export=0
nengel@2 38 .macro endfunc
nengel@2 39 ELF .size \name, . - \name
nengel@2 40 .endfunc
nengel@2 41 .purgem endfunc
nengel@2 42 .endm
nengel@2 43 .if \export
nengel@2 44 .global EXTERN_ASM\name
nengel@2 45 EXTERN_ASM\name:
nengel@2 46 .endif
nengel@2 47 ELF .type \name, %function
nengel@2 48 .func \name
nengel@2 49 \name:
nengel@2 50 .endm
nengel@2 51
nengel@2 52 .macro movrel rd, val
nengel@2 53 #if HAVE_ARMV6T2 && !CONFIG_PIC
nengel@2 54 movw \rd, #:lower16:\val
nengel@2 55 movt \rd, #:upper16:\val
nengel@2 56 #else
nengel@2 57 ldr \rd, =\val
nengel@2 58 #endif
nengel@2 59 .endm
nengel@2 60
nengel@2 61 #if HAVE_VFP_ARGS
nengel@2 62 .eabi_attribute 28, 1
nengel@2 63 # define VFP
nengel@2 64 # define NOVFP @
nengel@2 65 #else
nengel@2 66 # define VFP @
nengel@2 67 # define NOVFP
nengel@2 68 #endif
nengel@2 69
nengel@2 70 #define GLUE(a, b) a ## b
nengel@2 71 #define JOIN(a, b) GLUE(a, b)
nengel@2 72 #define X(s) JOIN(EXTERN_ASM, s)