gf-complete/debian/check_sse.c

15 lines
229 B
C

#include <stdbool.h>
#include <stdio.h>
#include <cpuid.h>
static inline bool can_sse41(void){
int a, b, c, d;
__cpuid (1, a, b, c, d);
return c & bit_SSE4_1;
}
int main(int argc, char** argv){
return (int) can_sse41();
}