diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-05-02 13:27:06 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-05-02 14:45:30 +0300 |
commit | 66129b3334a5aa54ff8a97981507e4704f759571 (patch) | |
tree | 92a4c68c6c84b387e41f15f675e0b44f40472fd1 /cipher/rijndael-internal.h | |
parent | 8422d5d699265b960bd1ca837044ee052fc5b614 (diff) | |
download | libgcrypt-66129b3334a5aa54ff8a97981507e4704f759571.tar.gz |
Enable AMD64 AES implementation for WIN64
* cipher/rijndael-amd64.S: Enable when
HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS defined.
(ELF): New macro to mask lines with ELF specific commands.
* cipher/rijndael-internal.h (USE_AMD64_ASM): Enable when
HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS defined.
(do_encrypt, do_decrypt)
[USE_AMD64_ASM && !HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS]: Use
assembly block to call AMD64 assembly encrypt/decrypt function.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/rijndael-internal.h')
-rw-r--r-- | cipher/rijndael-internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cipher/rijndael-internal.h b/cipher/rijndael-internal.h index 33ca53f6..6641728c 100644 --- a/cipher/rijndael-internal.h +++ b/cipher/rijndael-internal.h @@ -39,7 +39,8 @@ /* USE_AMD64_ASM indicates whether to use AMD64 assembly code. */ #undef USE_AMD64_ASM -#if defined(__x86_64__) && defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) +#if defined(__x86_64__) && (defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) || \ + defined(HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS)) # define USE_AMD64_ASM 1 #endif |