e9e3e1e632
Add SSE4 detection. Fix setting of some opt flags in Makefile.in.
17 lines
256 B
C
17 lines
256 B
C
#include <stdio.h>
|
|
#include <utils.h>
|
|
#include <cpuid.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
processor_info_t pc;
|
|
cpuid_basic_identify(&pc);
|
|
printf("%d", pc.sse_level);
|
|
if (pc.sse_sub_level > 0)
|
|
printf(".%d\n", pc.sse_sub_level);
|
|
else
|
|
printf("\n");
|
|
return (0);
|
|
}
|
|
|