Skip to content

Commit

Permalink
simdArray: add missing imadd, imsub, divd overloading
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy committed Apr 17, 2024
1 parent b9788f3 commit 708a386
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/simd/simdArray.nim
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ template makeSimdArray2*(L:typed;B,F:typedesc;N0,N:typed,T:untyped) {.dirty.} =
template imadd*(r:var T; x:SomeNumber; y:T) = imadd(r, x.to(type(T)), y)
template imsub*(r:var T; x:SomeNumber; y:T) = imsub(r, x.to(type(T)), y)
template divd*(r:var T; x:SomeNumber; y:T) = divd(r, x.to(type(T)), y)
template imadd*(r:var T; x:T; y:SomeNumber) = imadd(r, x, y.to(type(T)))
template imsub*(r:var T; x:T; y:SomeNumber) = imsub(r, x, y.to(type(T)))
template divd*(r:var T; x:T; y:SomeNumber) = divd(r, x, y.to(type(T)))
template imul*(r:var T; x:SomeNumber) = imul(r, x.to(type(T)))
template idiv*(r:var T; x:SomeNumber) = idiv(r, x.to(type(T)))
template msub*(r:var T; x:SomeNumber; y,z:T) = msub(r, x.to(type(T)), y, z)
Expand Down

0 comments on commit 708a386

Please sign in to comment.