Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pixie.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requires "vmath >= 1.1.4"
requires "chroma >= 0.2.6"
requires "zippy >= 0.10.3"
requires "flatty >= 0.3.4"
requires "nimsimd >= 1.1.10"
requires "nimsimd >= 1.2.0"
requires "bumpy >= 1.1.1"

task bindings, "Generate bindings":
Expand Down
12 changes: 7 additions & 5 deletions src/pixie/simd.nim
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import simd/internal
import nimsimd/hassimd

export internal
export hassimd

const allowSimd* = not defined(pixieNoSimd) and not defined(tcc)

when allowSimd:
when defined(amd64):
import simd/sse2, simd/avx, simd/avx2
export sse2, avx, avx2
import simd/sse2
export sse2

when not defined(pixieNoAvx):
import nimsimd/runtimecheck
import nimsimd/runtimecheck, simd/avx, simd/avx2
export avx, avx2

let
cpuHasAvx* = checkInstructionSets({AVX})
cpuHasAvx2* = checkInstructionSets({AVX, AVX2})
Expand Down
2 changes: 1 addition & 1 deletion src/pixie/simd/avx.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chroma, internal, nimsimd/avx
import chroma, nimsimd/hassimd, nimsimd/avx

when defined(gcc) or defined(clang):
{.localPassc: "-mavx".}
Expand Down
2 changes: 1 addition & 1 deletion src/pixie/simd/avx2.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import avx, chroma, internal, nimsimd/avx2, pixie/blends, pixie/common, vmath
import avx, chroma, nimsimd/hassimd, nimsimd/avx2, pixie/blends, pixie/common, vmath

when defined(gcc) or defined(clang):
{.localPassc: "-mavx2".}
Expand Down
123 changes: 0 additions & 123 deletions src/pixie/simd/internal.nim

This file was deleted.

2 changes: 1 addition & 1 deletion src/pixie/simd/neon.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chroma, internal, nimsimd/neon, pixie/blends, pixie/common, vmath
import chroma, nimsimd/hassimd, nimsimd/neon, pixie/blends, pixie/common, vmath

when defined(release):
{.push checks: off.}
Expand Down
2 changes: 1 addition & 1 deletion src/pixie/simd/sse2.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chroma, internal, nimsimd/sse2, pixie/blends, pixie/common, vmath
import chroma, nimsimd/hassimd, nimsimd/sse2, pixie/blends, pixie/common, vmath

when defined(release):
{.push checks: off.}
Expand Down