Skip to content

Commit

Permalink
add MM_SHUFFLE
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Jan 26, 2021
1 parent 24d8076 commit 487754b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nimsimd.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.4.6"
version = "0.4.7"
author = "Ryan Oldenburg"
description = "Pleasant Nim bindings for SIMD instruction sets."
license = "MIT"
Expand Down
7 changes: 2 additions & 5 deletions src/nimsimd/sse2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ type
M128i* {.importc: "__m128i", header: "emmintrin.h".} = object
M128d* {.importc: "__m128d", header: "emmintrin.h".} = object

# template MM_SHUFFLE*(z, y, x, w: int | uint): uint32 =
# ((w shl 6) or (x shl 4) or (y shl 2) or z).uint32
template MM_SHUFFLE*(z, y, x, w: int | uint): int32 =
((z shl 6) or (y shl 4) or (x shl 2) or w).int32

# "xmmintrin.h"

Expand Down Expand Up @@ -975,9 +975,6 @@ func m128*(): M128 {.inline.} =
func m128*(a: float32): M128 {.inline.} =
mm_set1_ps(a)

func m128*(a, b, c, d: float32): M128 {.inline.} =
mm_set_ps(a, b, c, d)

func m128d*(): M128d {.inline.} =
mm_setzero_pd()

Expand Down

0 comments on commit 487754b

Please sign in to comment.