Skip to content

Instantly share code, notes, and snippets.

@richlander
Created January 29, 2019 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richlander/169d95433cd1d1c1d6d97f9742e65ea8 to your computer and use it in GitHub Desktop.
Save richlander/169d95433cd1d1c1d6d97f9742e65ea8 to your computer and use it in GitHub Desktop.
Taking pointer from unmanaged constructed type
Vector256<int> SoftwareFallback(int x)
{
var result = Vector256<int>.Zero;
((int*)(&result))[0] = x;
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment