Browse Source

[cpu] more builtin version check changes

Signed-off-by: r4sas <r4sas@i2pmail.org>
pull/1970/head
R4SAS 8 months ago
parent
commit
fb420bb563
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 4
      libi2pd/CPU.cpp

4
libi2pd/CPU.cpp

@ -35,10 +35,10 @@ namespace cpu @@ -35,10 +35,10 @@ namespace cpu
__builtin_cpu_init();
# endif
return __builtin_cpu_supports("aes");
#elif (defined(__GNUC__) && __GNUC__ >= 5)
#elif (defined(__GNUC__) && __GNUC__ >= 6)
__builtin_cpu_init();
return __builtin_cpu_supports("aes");
#elif (defined(__GNUC__) && __GNUC__ < 5)
#elif (defined(__GNUC__) && __GNUC__ < 6)
int cpu_info[4];
bool flag = false;
__cpuid(0, cpu_info[0], cpu_info[1], cpu_info[2], cpu_info[3]);

Loading…
Cancel
Save