about summary refs log tree commit diff
path: root/src/afl-performance.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-02-08 12:46:00 +0100
committervanhauser-thc <vh@thc.org>2024-02-08 12:46:08 +0100
commit038fef962c3d85fe7e37fcd8717270654f927881 (patch)
tree03a7e572705e1d2ec813822b1ad09bfff1a39a2c /src/afl-performance.c
parent42c663e7c76bd3abee2c6a84dd689bcfea3f59dc (diff)
downloadafl++-038fef962c3d85fe7e37fcd8717270654f927881.tar.gz
performance
Diffstat (limited to 'src/afl-performance.c')
-rw-r--r--src/afl-performance.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/afl-performance.c b/src/afl-performance.c
index 07c1b527..22cf4dec 100644
--- a/src/afl-performance.c
+++ b/src/afl-performance.c
@@ -2,9 +2,18 @@
 #include "afl-fuzz.h"
 #include "types.h"
 
+#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) {