diff options
author | Martin Storsjö <martin@martin.st> | 2018-03-22 23:32:37 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2018-03-28 20:37:51 +0300 |
commit | ec0a2f25c0f64a7b65b373508ce9081e10461965 (patch) | |
tree | a94aec7485d49efd8f2f86eb0724ba05dc837b8b /mpi/asm-common-aarch64.h | |
parent | ed41d6d6fb4551342b22ef763de1bd60e964e186 (diff) | |
download | libgcrypt-ec0a2f25c0f64a7b65b373508ce9081e10461965.tar.gz |
aarch64: mpi: Fix building the mpi aarch64 assembly for windows
* mpi/aarch64/mpih-add1.S: Use ELF macro.
* mpi/aarch64/mpih-mul1.S: Use ELF macro.
* mpi/aarch64/mpih-mul2.S: Use ELF macro.
* mpi/aarch64/mpih-mul3.S: Use ELF macro.
* mpi/aarch64/mpih-sub1.S: Use ELF macro.
* mpi/asm-common-aarch64.h: New.
--
The mpi aarch64 assembly is enabled as soon as the compiler supports
inline assembly, without checking for .type and .size, as is done
for the rest of the assembly in cipher/*.S. (The .type and .size
directives are only supported on ELF.)
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'mpi/asm-common-aarch64.h')
-rw-r--r-- | mpi/asm-common-aarch64.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mpi/asm-common-aarch64.h b/mpi/asm-common-aarch64.h new file mode 100644 index 00000000..12694130 --- /dev/null +++ b/mpi/asm-common-aarch64.h @@ -0,0 +1,30 @@ +/* asm-common-aarch64.h - Common macros for AArch64 assembly + * + * Copyright (C) 2018 Martin Storsjö <martin@martin.st> + * + * This file is part of Libgcrypt. + * + * Libgcrypt is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * Libgcrypt is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MPI_ASM_COMMON_AARCH64_H +#define MPI_ASM_COMMON_AARCH64_H + +#ifdef __ELF__ +# define ELF(...) __VA_ARGS__ +#else +# define ELF(...) /*_*/ +#endif + +#endif /* MPI_ASM_COMMON_AARCH64_H */ |