22 lines
319 B
C
22 lines
319 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "cpuid.h"
|
|
|
|
static void ssse3_test (void);
|
|
|
|
int
|
|
main ()
|
|
{
|
|
unsigned int eax, ebx, ecx, edx;
|
|
|
|
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
|
|
return 0;
|
|
|
|
/* Run SSSE3 test only if host has SSSE3 support. */
|
|
if (ecx & bit_SSSE3)
|
|
ssse3_test ();
|
|
|
|
return 0;
|
|
}
|