From 05c5985073aef2045d5b84ac707d00480c378802 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 26 Jan 2021 10:47:55 +0100 Subject: [PATCH] fix #1173 - added guards --- client/deps/hardnested/hardnested_bf_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/deps/hardnested/hardnested_bf_core.c b/client/deps/hardnested/hardnested_bf_core.c index feb08997b..e856d26e1 100644 --- a/client/deps/hardnested/hardnested_bf_core.c +++ b/client/deps/hardnested/hardnested_bf_core.c @@ -559,7 +559,10 @@ void SetSIMDInstr(SIMDExecInstr instr) { static SIMDExecInstr GetSIMDInstr(void) { SIMDExecInstr instr; +#if defined(COMPILER_HAS_SIMD) __builtin_cpu_init(); +#endif + #if defined(COMPILER_HAS_SIMD_AVX512) if (__builtin_cpu_supports("avx512f")) instr = SIMD_AVX512;