Debian Codegraph @

rpython/translator/c/src/asm_msvc.c

raw symbols SCIP
1 #ifdef PYPY_X86_CHECK_SSE2
2 #include <intrin.h>
3 #include <stdio.h>
4 void pypy_x86_check_sse2(void)
5 {
6 int features;
7 int CPUInfo[4];
8 CPUInfo[3] = 0;
9 __cpuid(CPUInfo, 1);
10 features = CPUInfo[3];
11
12 //Check bits 25 and 26, this indicates SSE2 support
13 if (((features & (1 << 25)) == 0) || ((features & (1 << 26)) == 0))
14 {
15 fprintf(stderr, "Old CPU with no SSE2 support, cannot continue.\n"
16 "You need to re-translate with "
17 "'--jit-backend=x86-without-sse2'\n");
18 abort();
19 }
20 }
21 #endif