Skip to content

Instantly share code, notes, and snippets.

@FrankNiemeyer
Created August 28, 2015 15:44
Show Gist options
  • Save FrankNiemeyer/9686afe1f2312827dd74 to your computer and use it in GitHub Desktop.
Save FrankNiemeyer/9686afe1f2312827dd74 to your computer and use it in GitHub Desktop.
static void Dot3AosScalar(Vector3[] vs, float[] dp) {
for (var j = 0; j < reps; ++j) {
for (var i = 0; i < dp.Length; ++i) {
dp[i] = vs[i].X * vs[i].X + vs[i].Y * vs[i].Y + vs[i].Z * vs[i].Z;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment