Line 0
Link Here
|
|
|
1 |
/* |
2 |
* Copyright (c) 2018 Janne Grunau <janne-libav@jannau.net> |
3 |
* |
4 |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU Lesser General Public |
6 |
* License as published by the Free Software Foundation; either |
7 |
* version 2.1 of the License, or (at your option) any later version. |
8 |
* |
9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 |
* Lesser General Public License for more details. |
13 |
* |
14 |
* You should have received a copy of the GNU Lesser General Public |
15 |
* License along with this program; if not, write to the Free Software |
16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
17 |
*/ |
18 |
|
19 |
#ifdef __APPLE__ |
20 |
# define EXTERN_ASM _ |
21 |
#else |
22 |
# define EXTERN_ASM |
23 |
#endif |
24 |
|
25 |
#if defined(__APPLE__) || defined(_WIN32) |
26 |
# define HAVE_AS_ARCH_DIRECTIVE 0 |
27 |
# define HAVE_AS_FPU_DIRECTIVE 0 |
28 |
#else |
29 |
# define HAVE_AS_ARCH_DIRECTIVE 1 |
30 |
# define HAVE_AS_FPU_DIRECTIVE 1 |
31 |
#endif |
32 |
|
33 |
.macro function name |
34 |
.globl EXTERN_ASM\name |
35 |
#ifdef __ELF__ |
36 |
.type EXTERN_ASM\name, %function |
37 |
#endif |
38 |
EXTERN_ASM\name: |
39 |
.endm |