From 422e0187185fc976a9e41c8bc746cada37e46849 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 2 Jun 2020 12:56:20 +0200 Subject: [PATCH] cppcheck --- client/deps/hardnested/hardnested_bf_core.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/client/deps/hardnested/hardnested_bf_core.c b/client/deps/hardnested/hardnested_bf_core.c index b8fd56cf2..5f4fcf991 100644 --- a/client/deps/hardnested/hardnested_bf_core.c +++ b/client/deps/hardnested/hardnested_bf_core.c @@ -557,17 +557,22 @@ void SetSIMDInstr(SIMDExecInstr instr) { } static SIMDExecInstr GetSIMDInstr(void) { - SIMDExecInstr instr = SIMD_NONE; + SIMDExecInstr instr; #if defined(COMPILER_HAS_SIMD_AVX512) - if (__builtin_cpu_supports("avx512f")) instr = SIMD_AVX512; + if (__builtin_cpu_supports("avx512f")) + instr = SIMD_AVX512; else #endif #if defined(COMPILER_HAS_SIMD) - if (__builtin_cpu_supports("avx2")) instr = SIMD_AVX2; - else if (__builtin_cpu_supports("avx")) instr = SIMD_AVX; - else if (__builtin_cpu_supports("sse2")) instr = SIMD_SSE2; - else if (__builtin_cpu_supports("mmx")) instr = SIMD_MMX; + if (__builtin_cpu_supports("avx2")) + instr = SIMD_AVX2; + else if (__builtin_cpu_supports("avx")) + instr = SIMD_AVX; + else if (__builtin_cpu_supports("sse2")) + instr = SIMD_SSE2; + else if (__builtin_cpu_supports("mmx")) + instr = SIMD_MMX; else #endif instr = SIMD_NONE;