Remove patches included upstream
Sebastian Ramacher
6 years ago
0 | From: Janne Grunau <janne-vlc@jannau.net> | |
1 | Date: Mon, 19 Feb 2018 00:47:53 +0100 | |
2 | Subject: arm: make the assembler functions compatible with non ELF/gas | |
3 | platforms | |
4 | MIME-Version: 1.0 | |
5 | Content-Type: text/plain; charset="utf-8" | |
6 | Content-Transfer-Encoding: 8bit | |
7 | ||
8 | Allow assembling arm neon functions for IOS and arm windows. | |
9 | ||
10 | Signed-off-by: Martin Storsjö <martin@martin.st> | |
11 | (cherry picked from commit ec4d9649d1c03fe8f578db38b41dccdf5e11b005) | |
12 | Signed-off-by: Thomas Guillem <thomas@gllm.fr> | |
13 | ||
14 | [Add modules/arm_neon/asm.S missing from orig tarball.] | |
15 | --- | |
16 | modules/arm_neon/asm.S | 39 +++++++++++++++++++++++++++++++++++++++ | |
17 | 1 file changed, 39 insertions(+) | |
18 | create mode 100644 modules/arm_neon/asm.S | |
19 | ||
20 | diff --git a/modules/arm_neon/asm.S b/modules/arm_neon/asm.S | |
21 | new file mode 100644 | |
22 | index 0000000..728391e | |
23 | --- /dev/null | |
24 | +++ b/modules/arm_neon/asm.S | |
25 | @@ -0,0 +1,39 @@ | |
26 | +/* | |
27 | + * Copyright (c) 2018 Janne Grunau <janne-libav@jannau.net> | |
28 | + * | |
29 | + * This program is free software; you can redistribute it and/or | |
30 | + * modify it under the terms of the GNU Lesser General Public | |
31 | + * License as published by the Free Software Foundation; either | |
32 | + * version 2.1 of the License, or (at your option) any later version. | |
33 | + * | |
34 | + * This program is distributed in the hope that it will be useful, | |
35 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
36 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
37 | + * Lesser General Public License for more details. | |
38 | + * | |
39 | + * You should have received a copy of the GNU Lesser General Public | |
40 | + * License along with this program; if not, write to the Free Software | |
41 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
42 | + */ | |
43 | + | |
44 | +#ifdef __APPLE__ | |
45 | +# define EXTERN_ASM _ | |
46 | +#else | |
47 | +# define EXTERN_ASM | |
48 | +#endif | |
49 | + | |
50 | +#if defined(__APPLE__) || defined(_WIN32) | |
51 | +# define HAVE_AS_ARCH_DIRECTIVE 0 | |
52 | +# define HAVE_AS_FPU_DIRECTIVE 0 | |
53 | +#else | |
54 | +# define HAVE_AS_ARCH_DIRECTIVE 1 | |
55 | +# define HAVE_AS_FPU_DIRECTIVE 1 | |
56 | +#endif | |
57 | + | |
58 | +.macro function name | |
59 | + .globl EXTERN_ASM\name | |
60 | +#ifdef __ELF__ | |
61 | + .type EXTERN_ASM\name, %function | |
62 | +#endif | |
63 | +EXTERN_ASM\name: | |
64 | +.endm |