mirror of
https://github.com/wownero/RandomWOW.git
synced 2026-10-17 23:41:36 +02:00
Apple silicon: force W^X, enable hardware AES
This commit is contained in:
+5
-1
@@ -62,9 +62,13 @@ namespace randomx {
|
||||
cpuid(info, 0x00000007);
|
||||
avx2_ = (info[1] & (1 << 5)) != 0;
|
||||
}
|
||||
#elif defined(__aarch64__) && defined(HWCAP_AES)
|
||||
#elif defined(__aarch64__)
|
||||
#if defined(HWCAP_AES)
|
||||
long hwcaps = getauxval(AT_HWCAP);
|
||||
aes_ = (hwcaps & HWCAP_AES) != 0;
|
||||
#elif defined(__APPLE__)
|
||||
aes_ = true;
|
||||
#endif
|
||||
#endif
|
||||
//TODO POWER8 AES
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user