[util] Only include x86 intrinsics headers on x86

This commit is contained in:
Joshua Ashton 2022-09-13 18:41:53 +01:00 committed by Joshie
parent 736f91fad1
commit 466026632d
1 changed files with 13 additions and 11 deletions

View File

@ -11,17 +11,19 @@
#error "Unknown CPU Architecture"
#endif
#ifndef _MSC_VER
#if defined(__WINE__) && defined(__clang__)
#pragma push_macro("_WIN32")
#undef _WIN32
#endif
#include <x86intrin.h>
#if defined(__WINE__) && defined(__clang__)
#pragma pop_macro("_WIN32")
#endif
#else
#include <intrin.h>
#ifdef DXVK_ARCH_X86
#ifndef _MSC_VER
#if defined(__WINE__) && defined(__clang__)
#pragma push_macro("_WIN32")
#undef _WIN32
#endif
#include <x86intrin.h>
#if defined(__WINE__) && defined(__clang__)
#pragma pop_macro("_WIN32")
#endif
#else
#include <intrin.h>
#endif
#endif
#include "util_likely.h"