about summary refs log tree commit diff
path: root/src/afl-performance.c
diff options
context:
space:
mode:
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) {