aboutsummaryrefslogtreecommitdiff
path: root/src/afl-performance.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-04-13 11:50:49 +0200
committerGitHub <noreply@github.com>2024-04-13 11:50:49 +0200
commit1d17210d9fb0eb37ba866a3697643a9e4f37acd5 (patch)
tree2471cccc76e4396de369f3bfe4b8f4bb00ef6403 /src/afl-performance.c
parent775861ea94d00672c9e868db329073afd699b994 (diff)
parent1582aa9da2d7593e5b577aa3fc963ea7eb2ccbb3 (diff)
downloadafl++-1d17210d9fb0eb37ba866a3697643a9e4f37acd5.tar.gz
Merge pull request #2052 from AFLplusplus/devv4.20c
4.20 release pre-PR
Diffstat (limited to 'src/afl-performance.c')
-rw-r--r--src/afl-performance.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/afl-performance.c b/src/afl-performance.c
index 07c1b527..f730ca53 100644
--- a/src/afl-performance.c
+++ b/src/afl-performance.c
@@ -2,9 +2,17 @@
#include "afl-fuzz.h"
#include "types.h"
-#define XXH_INLINE_ALL
-#include "xxhash.h"
-#undef XXH_INLINE_ALL
+#ifdef _HAVE_AVX2
+ #define T1HA0_AESNI_AVAILABLE 1
+ #define T1HA_USE_FAST_ONESHOT_READ 1
+ #define T1HA_USE_INDIRECT_FUNCTIONS 1
+ #define T1HA_IA32AES_NAME XXH3_64bits
+ #include "t1ha0_ia32aes_b.h"
+#else
+ #define XXH_INLINE_ALL
+ #include "xxhash.h"
+ #undef XXH_INLINE_ALL
+#endif
void rand_set_seed(afl_state_t *afl, s64 init_seed) {