~ubuntu-branches/ubuntu/utopic/libav/utopic-proposed

« back to all changes in this revision

Viewing changes to .pc/ftbfs-arm64.patch/libavutil/aarch64/asm.S

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-05-29 07:34:56 UTC
  • Revision ID: package-import@ubuntu.com-20140529073456-q808b3f4saf5z7ui
Tags: 6:10.1-1ubuntu1
* add patch to fix FTBFS on ppc64el, LP: #1263802
* add patch to fix FTBFS on arm64, LP: #1323144

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
 
3
 *
 
4
 * This file is part of Libav.
 
5
 *
 
6
 * Libav is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * Libav is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with Libav; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
19
 */
 
20
 
 
21
#include "config.h"
 
22
 
 
23
#ifdef __ELF__
 
24
#   define ELF
 
25
#else
 
26
#   define ELF //
 
27
#endif
 
28
 
 
29
.macro  function name, export=0, align=2
 
30
    .macro endfunc
 
31
ELF     .size   \name, . - \name
 
32
        .endfunc
 
33
        .purgem endfunc
 
34
    .endm
 
35
        .text
 
36
        .align          \align
 
37
    .if \export
 
38
        .global EXTERN_ASM\name
 
39
EXTERN_ASM\name:
 
40
    .endif
 
41
ELF     .type   \name, %function
 
42
        .func   \name
 
43
\name:
 
44
.endm
 
45
 
 
46
.macro  const   name, align=2
 
47
    .macro endconst
 
48
ELF     .size   \name, . - \name
 
49
        .purgem endconst
 
50
    .endm
 
51
        .section        .rodata
 
52
        .align          \align
 
53
\name:
 
54
.endm
 
55
 
 
56
.macro  movrel rd, val
 
57
#if CONFIG_PIC
 
58
        adrp            \rd, #:pg_hi21:\val
 
59
        add             \rd, \rd, #:lo12:\val
 
60
#else
 
61
        ldr             \rd, =\val
 
62
#endif
 
63
.endm