Skip to content

Instantly share code, notes, and snippets.

@bitnenfer
Created February 12, 2016 13:24
Show Gist options
  • Save bitnenfer/d30a04658e207b581d76 to your computer and use it in GitHub Desktop.
Save bitnenfer/d30a04658e207b581d76 to your computer and use it in GitHub Desktop.
inline static void sse_mat4_add(__m128* m0, __m128* m1, __m128* dst)
{
dst[0] = _mm_add_ps(m0[0], m1[0]);
dst[1] = _mm_add_ps(m0[1], m1[1]);
dst[2] = _mm_add_ps(m0[2], m1[2]);
dst[3] = _mm_add_ps(m0[3], m1[3]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment