Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Dot3SoaVectorized(float[] xs, float[] ys, float[] zs, float[] dp) {
- for (var j = 0; j < reps; ++j) {
- for (var i = 0; i < dp.Length; i += laneWidth) {
- var x = new Vector<float>(xs, i);
- var y = new Vector<float>(ys, i);
- var z = new Vector<float>(zs, i);
- var d = x * x + y * y + z * z;
- d.CopyTo(dp, i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement