File tree Expand file tree Collapse file tree 2 files changed +3
-71
lines changed
Expand file tree Collapse file tree 2 files changed +3
-71
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6363
6464|.define HYBRID_SPAD, 16
6565
66+ #include "Zend/zend_cpuinfo.h"
6667#include "jit/zend_jit_x86.h"
67- #include "jit/zend_cpuid.h"
6868
6969const char* zend_reg_name[] = {
7070#ifdef __x86_64__
@@ -2161,21 +2161,13 @@ static const zend_jit_stub zend_jit_stubs[] = {
21612161
21622162static int zend_jit_setup(void)
21632163{
2164- zend_cpuid_info info;
2165-
2166- zend_cpuid(0, 0, &info);
2167- if (info.eax < 1) {
2168- return FAILURE;
2169- }
2170- zend_cpuid(1, 0, &info);
2171-
21722164 |.if SSE
2173- if (!(info.edx & ZEND_CPUID_EDX_SSE2 )) {
2165+ if (!zend_cpu_supports(ZEND_CPU_FEATURE_SSE2 )) {
21742166 zend_error(E_CORE_ERROR, "CPU doesn't support SSE2");
21752167 return FAILURE;
21762168 }
21772169 if (zend_jit_cpu_flags & ZEND_JIT_CPU_AVX) {
2178- if (info.ecx & ZEND_CPUID_ECX_AVX ) {
2170+ if (zend_cpu_supports(ZEND_CPU_FEATURE_AVX) ) {
21792171 zend_jit_x86_flags |= ZEND_JIT_CPU_AVX;
21802172 }
21812173 }
You can’t perform that action at this time.
0 commit comments