#include #define cpuid(func,ax,bx,cx,dx)\ __asm__ __volatile__ ("cpuid":\ "=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) : "a" (func)); void checkSSEsuport (void) { int SSE2 = 0x01 << 26; int a, b, c, d; cpuid(0x01, a, b, c, d); if (d & SSE2) { printf("SSE2 is supported\n"); } else { printf("SSE2 not supported\n"); } } int main (void) { checkSSEsuport(); return 0; }