Esempio n. 1
0
        static public void Main(string[] args)
        {
            Intrinsincs.Init();
            TestCPUID();
            TestBSWAP32();
            //TestBSWAP64();
            TestBSF16();
            TestBSF32();
            TestBSF64();
            TestBSR16();
            TestBSR32();
            TestBSR64();

            if (CPUID.ISSupported(CPUID.CPUIDFeature.POPCNT))
            {
                TestPOPCNT16();
                TestPOPCNT32();
                TestPOPCNT64();
            }
            else
            {
                Console.WriteLine("POPCNT not supported, skipping");
            }

            TestRDTSC();
            if (CPUID.ISSupported(CPUID.CPUIDFeature.RDTSCP))
            {
                TestRDTSCP();
            }
            else
            {
                Console.WriteLine("RDTSCP not supported, skipping");
            }
        }
Esempio n. 2
0
 public void Setup()
 {
     Intrinsincs.Init();
 }