Debian Codegraph @

cipher/camellia-vaes-avx2-amd64.S

raw
1 /* camellia-vaes-avx2-amd64.S - VAES/AVX2 implementation of Camellia cipher
2 *
3 * Copyright (C) 2021 Jussi Kivilinna <[email protected]>
4 *
5 * This file is part of Libgcrypt.
6 *
7 * Libgcrypt is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * Libgcrypt is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include <config.h>
22
23 #ifdef __x86_64
24 #if (defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) || \
25 defined(HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS)) && \
26 defined(ENABLE_AESNI_SUPPORT) && defined(ENABLE_AVX2_SUPPORT) && \
27 defined(HAVE_GCC_INLINE_ASM_VAES_VPCLMUL)
28
29 #define CAMELLIA_VAES_BUILD 1
30 #define FUNC_NAME(func) _gcry_camellia_vaes_avx2_ ## func
31
32 #include "camellia-aesni-avx2-amd64.h"
33
34 #endif /* defined(ENABLE_AESNI_SUPPORT) && defined(ENABLE_AVX2_SUPPORT) */
35 #endif /* __x86_64 */