mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 01:46:36 +02:00
[cpu] use __builtin_* only on x86 systems
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
1389b85028
commit
239a93485c
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ namespace cpu
|
|||
|
||||
void Detect(bool AesSwitch, bool force)
|
||||
{
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
__builtin_cpu_init ();
|
||||
#if defined (_WIN32) && (WINVER == 0x0501) // WinXP
|
||||
if (AesSwitch && force) { // only if forced
|
||||
|
@ -25,7 +26,7 @@ namespace cpu
|
|||
#endif
|
||||
aesni = true;
|
||||
}
|
||||
|
||||
#endif
|
||||
LogPrint(eLogInfo, "AESNI ", (aesni ? "enabled" : "disabled"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue