#include <stdio.h> | |
#include <stdlib.h> | |
#include "m128-check.h" | |
#include "cpuid.h" | |
static void sse_test (void); | |
int | |
main () | |
{ | |
unsigned int eax, ebx, ecx, edx; | |
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) | |
return 0; | |
/* Run SSE test only if host has SSE support. */ | |
if (edx & bit_SSE) | |
sse_test (); | |
return 0; | |
} |