From 902dda2a2e7edb96c25d862db619dba88cc9d6ef Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Thu, 7 Jul 2022 19:39:39 -0500 Subject: [PATCH] simpler --- src/pixie/simd.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pixie/simd.nim b/src/pixie/simd.nim index a61f751..8a6eddf 100644 --- a/src/pixie/simd.nim +++ b/src/pixie/simd.nim @@ -42,11 +42,7 @@ when allowSimd and defined(amd64): import simd/sse2, simd/avx, simd/avx2 export sse2, avx, avx2 - when defined(pixieNoAvx): - const - cpuHasAvx* = false - cpuHasAvx2* = false - else: + when not defined(pixieNoAvx): import nimsimd/runtimecheck let cpuHasAvx* = checkInstructionSets({AVX})