Windows: set HAVE_IMMINTRIN_H for AVX intrinsics

This commit is contained in:
Joel Linn 2021-06-12 01:25:40 +02:00 committed by Ryan C. Gordon
parent 638befc1a9
commit 20eea021c6
2 changed files with 5 additions and 1 deletions

View File

@ -773,6 +773,7 @@ if(ASSEMBLY)
set(HAVE_SSE TRUE) set(HAVE_SSE TRUE)
set(HAVE_SSE2 TRUE) set(HAVE_SSE2 TRUE)
set(HAVE_SSE3 TRUE) set(HAVE_SSE3 TRUE)
check_include_file("immintrin.h" HAVE_IMMINTRIN_H)
set(SDL_ASSEMBLY_ROUTINES 1) set(SDL_ASSEMBLY_ROUTINES 1)
endif() endif()
endif() endif()

View File

@ -84,7 +84,10 @@ typedef unsigned int uintptr_t;
#define HAVE_XINPUT_H 1 #define HAVE_XINPUT_H 1
#define HAVE_MMDEVICEAPI_H 1 #define HAVE_MMDEVICEAPI_H 1
#define HAVE_AUDIOCLIENT_H 1 #define HAVE_AUDIOCLIENT_H 1
#define HAVE_SENSORSAPI_H #define HAVE_SENSORSAPI_H 1
#if defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)
#define HAVE_IMMINTRIN_H 1
#endif
/* This is disabled by default to avoid C runtime dependencies and manifest requirements */ /* This is disabled by default to avoid C runtime dependencies and manifest requirements */
#ifdef HAVE_LIBC #ifdef HAVE_LIBC