mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix #1173 - added guards
This commit is contained in:
parent
6a13a0c349
commit
05c5985073
1 changed files with 3 additions and 0 deletions
|
@ -559,7 +559,10 @@ void SetSIMDInstr(SIMDExecInstr instr) {
|
||||||
static SIMDExecInstr GetSIMDInstr(void) {
|
static SIMDExecInstr GetSIMDInstr(void) {
|
||||||
SIMDExecInstr instr;
|
SIMDExecInstr instr;
|
||||||
|
|
||||||
|
#if defined(COMPILER_HAS_SIMD)
|
||||||
__builtin_cpu_init();
|
__builtin_cpu_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||||
if (__builtin_cpu_supports("avx512f"))
|
if (__builtin_cpu_supports("avx512f"))
|
||||||
instr = SIMD_AVX512;
|
instr = SIMD_AVX512;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue