Browse Source

[avx] check ig c++ target supports AVX

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1601/head
R4SAS 4 years ago
parent
commit
ca3b819151
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      libi2pd/Crypto.cpp

2
libi2pd/Crypto.cpp

@ -638,7 +638,7 @@ namespace crypto
{ {
uint64_t buf[256]; uint64_t buf[256];
uint64_t hash[12]; // 96 bytes uint64_t hash[12]; // 96 bytes
#if defined(__x86_64__) || defined(__i386__) #if (defined(__x86_64__) || defined(__i386__)) && defined(__AVX__) // not all X86 targets supports AVX (like old Pentium, see #1600)
if(i2p::cpu::avx) if(i2p::cpu::avx)
{ {
__asm__ __asm__

Loading…
Cancel
Save