move x86 asm to intrinsics, e2k aes-ni/avx support

Signed-off-by: contextswap <ctxswp@proton.me>
This commit is contained in:
contextswap 2023-05-04 05:08:49 +09:00
parent a9e9e14c42
commit 1509349fec
No known key found for this signature in database
GPG key ID: 06A0B660A90A787B
4 changed files with 221 additions and 262 deletions

View file

@ -50,6 +50,14 @@ namespace cpu
}
}
#endif // defined(__x86_64__) || defined(__i386__)
#ifdef __e2k__
#ifdef __AES__
aesni = true;
#endif
#ifdef __AVX__
avx = true;
#endif
#endif
LogPrint(eLogInfo, "AESNI ", (aesni ? "enabled" : "disabled"));
LogPrint(eLogInfo, "AVX ", (avx ? "enabled" : "disabled"));