Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Dec 1, 2020
1 parent e502c61 commit cd80b00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This repo provides pleasant Nim bindings for various SIMD instructions.

Each SIMD instruction set is in its own file for importing.

## Basic Example
In addition to direct bindings to the SIMD instructions, there are also operator overloads to make for much more readable code (that is also easier to write!). See this basic example:

```nim
import nimsimd/sse2
Expand Down
3 changes: 3 additions & 0 deletions src/nimsimd/sse2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func mm_and_si128*(a, b: M128i): M128i
func m128*(a: float32): M128 {.inline.} =
mm_set1_ps(a)

func m128i*(a: int32): M128i {.inline.} =
mm_set1_epi32(a)

func `and`*(a, b: M128): M128 {.inline.} =
mm_and_ps(a, b)

Expand Down

0 comments on commit cd80b00

Please sign in to comment.