blob: 79ea4815517f48649e940e0d53b71c3c34794df9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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;
}
|