Context: I'm new to Nim, not new to SIMD intrinsics. I'm using this binding
library:
[https://github.com/bsegovia/x86_simd.nim](https://github.com/bsegovia/x86_simd.nim)
I can successfully add two m128i values if I do something like:
let a = set1_epi32(1)
let b = set1_epi32(1)
let c = add_epi32(a,b)
and that works fine. What I am trying to learn now is how one would use this
nicely with nim for more realistic example where I have arrays and wish do do
SIMD operations on them:
let myArray1 = [1,2,3,4,5,6,7,8]
let myArray2 = [1,1,1,1,1,1,1,1]
let result = ???
# now how to loop over these adding 4 elements at a time by casting
portions of the array to m128i?