Created
February 23, 2019 19:21
-
-
Save IJzerbaard/3bf870ad4469524ad77ee3df00ad21c9 to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Runtime.Intrinsics; | |
using System.Runtime.Intrinsics.X86; | |
namespace C3Test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine(test(128)); | |
} | |
static unsafe Vector256<byte> test(byte v) | |
{ | |
Vector256<byte> x = Avx2.BroadcastScalarToVector256(&v); | |
return x; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment