Created
January 29, 2019 17:08
-
-
Save richlander/a8d2ccae8abee2ee69ebd9af52511611 to your computer and use it in GitHub Desktop.
Taking a pointer to an unmanaged constructed type
This file contains 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<double> SoftwareFallback(double x) | |
{ | |
var pResult = stackalloc double[4] | |
{ | |
x, | |
x, | |
x, | |
x, | |
}; | |
return *(Vector256<double>*)(pResult); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment