summaryrefslogtreecommitdiffstats
path: root/contrib/t1ha/t1ha0_ia32aes_a.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/t1ha/t1ha0_ia32aes_a.h')
-rw-r--r--contrib/t1ha/t1ha0_ia32aes_a.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/t1ha/t1ha0_ia32aes_a.h b/contrib/t1ha/t1ha0_ia32aes_a.h
index fa02e419e..7399c15d1 100644
--- a/contrib/t1ha/t1ha0_ia32aes_a.h
+++ b/contrib/t1ha/t1ha0_ia32aes_a.h
@@ -43,6 +43,7 @@
#include "t1ha_bits.h"
+
#if T1HA0_AESNI_AVAILABLE
#pragma GCC push_options
@@ -57,6 +58,15 @@
#define __AES__
#endif
#include <immintrin.h>
+#if defined(__ia32__) || defined(__e2k__)
+#include <x86intrin.h>
+#endif
+
+#if defined(__ia32__)
+#include <cpuid.h>
+#endif
+
+uint64_t T1HA_IA32AES_NAME(const void *data, size_t len, uint64_t seed) __attribute__((target("aes")));
uint64_t T1HA_IA32AES_NAME(const void *data, size_t len, uint64_t seed) {
uint64_t a = seed;