pcompress/utils/sse_level.c
Moinak Ghosh e9e3e1e632 Improve SSE version detection.
Add SSE4 detection.
Fix setting of some opt flags in Makefile.in.
2013-01-20 22:53:36 +05:30

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);
}