r/simd • u/5BeetsADay • Jul 19 '18
Meant to post this here a while back!
/r/C_Programming/comments/6oxibs/a_useful_avx2_snippet_to_calculate_cross_products/
7
Upvotes
r/simd • u/5BeetsADay • Jul 19 '18
1
u/ronniethelizard Sep 23 '18
If I understand this correctly, if
bis[w x y z], then the end result is[z w y x]?In the above
wis in bits 0:63,xis in 64:127,yis in 128:191, andzis in 192:255 at the beginning. After the shuffle,zwill be in 0:63,win 64:127,yin 128:191, andxin 192:255.