// ssechk1.cs using System; using System.Runtime.InteropServices; class SSECheck1 { [DllImport("kernel32.dll")] private extern static bool IsProcessorFeaturePresent (uint ProcessorFeature); // 定数の宣言 private const uint PF_XMMI_INSTRUCTIONS_AVAILABLE = 6; private static void Main() { if(IsProcessorFeaturePresent(PF_XMMI_INSTRUCTIONS_AVAILABLE)) { Console.WriteLine("SSE is available."); } else { Console.WriteLine("SSE is not available."); } } } // コンパイル方法: csc ssechk1.cs