This commit is contained in:
Ryan Oldenburg 2022-07-07 19:39:39 -05:00
parent 83c7527474
commit 902dda2a2e

View file

@ -42,11 +42,7 @@ when allowSimd and defined(amd64):
import simd/sse2, simd/avx, simd/avx2 import simd/sse2, simd/avx, simd/avx2
export sse2, avx, avx2 export sse2, avx, avx2
when defined(pixieNoAvx): when not defined(pixieNoAvx):
const
cpuHasAvx* = false
cpuHasAvx2* = false
else:
import nimsimd/runtimecheck import nimsimd/runtimecheck
let let
cpuHasAvx* = checkInstructionSets({AVX}) cpuHasAvx* = checkInstructionSets({AVX})