Created
January 29, 2019 17:10
-
-
Save richlander/169d95433cd1d1c1d6d97f9742e65ea8 to your computer and use it in GitHub Desktop.
Taking pointer from unmanaged constructed type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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