summaryrefslogtreecommitdiff
path: root/config_misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-26 04:50:48 -0400
committerGitHub <noreply@github.com>2021-04-26 04:50:48 -0400
commita0e21c77aeadb2d8bb4c03a830528c9ae0616dfe (patch)
tree9c8dd638fa7dd6a1c84d483eb062c7716f6a3db5 /config_misc.h
parent21a40abc5ceeb0ccf6577a444f1b4c19fa6379c6 (diff)
downloadcryptopp-git-a0e21c77aeadb2d8bb4c03a830528c9ae0616dfe.tar.gz
Add LSH dynamic dispatch (PR #1032)
This commit adds dynamic dispatch to LSH. The implementation pivots on AVX2 and SSSE3.
Diffstat (limited to 'config_misc.h')
-rw-r--r--config_misc.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/config_misc.h b/config_misc.h
index 82d79229..67b2d4ab 100644
--- a/config_misc.h
+++ b/config_misc.h
@@ -191,30 +191,4 @@
# pragma GCC diagnostic ignored "-Wunused-function"
#endif
-// Requires ifunc support: GCC 4.8, Binutils 2.20.1 and libc 2.11.1.
-// Should work for Clang 7 and above: https://stackoverflow.com/q/39958935,
-// but fails with Clang 10: https://bugs.llvm.org/show_bug.cgi?id=50025.
-// Should work with GCC 4.8.4 and 7.5.0 but does not:
-// https://travis-ci.org/github/noloader/cryptopp-cmake/jobs/767701720 and
-// https://travis-ci.org/github/noloader/cryptopp/jobs/767704226.
-// Not available on Apple and Solaris platforms. Also see
-// https://sourceware.org/glibc/wiki/GNU_IFUNC and
-// https://gcc.gnu.org/onlinedocs/gcc/Function-Multiversioning.html.
-#if !defined(CRYPTOPP_DISABLE_ASM)
-# if defined(__linux__)
-# if defined(__i386__) || defined(__i686__) || defined(__amd64__)
-# if (CRYPTOPP_GCC_VERSION >= 80000) || (CRYPTOPP_LLVM_CLANG_VERSION >= 130000)
-# include <x86intrin.h>
-# define CRYPTOPP_HAVE_ATTRIBUTE_TARGET 1
-# define CRYPTOPP_TARGET_DEFAULT __attribute__ ((target ("default")))
-# define CRYPTOPP_TARGET_SSSE3 __attribute__ ((target ("ssse3")))
-# endif
-# endif
-# endif
-#endif
-
-#ifndef CRYPTOPP_TARGET_DEFAULT
-# define CRYPTOPP_TARGET_DEFAULT
-#endif
-
#endif // CRYPTOPP_CONFIG_MISC_H