correctly change target at compile time

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2020-11-10 21:15:50 +03:00
parent 07ff165a8f
commit 9e580de53c
2 changed files with 9 additions and 0 deletions

View file

@ -826,6 +826,7 @@ namespace data
}
#if defined(__x86_64__) || defined(__i386__)
#pragma GCC push_options
#pragma GCC target("avx")
#endif
XORMetric operator^(const IdentHash& key1, const IdentHash& key2)
@ -855,5 +856,9 @@ namespace data
return m;
}
#if defined(__x86_64__) || defined(__i386__)
#pragma GCC pop_options
#endif
}
}