mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
32 lines
545 B
C
32 lines
545 B
C
// Copyright 2015 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#ifdef _M_X86
|
|
|
|
#ifdef _MSC_VER
|
|
#include <intrin.h>
|
|
#else
|
|
#include <x86intrin.h>
|
|
#endif
|
|
|
|
#if defined _M_GENERIC
|
|
#define _M_SSE 0
|
|
#elif _MSC_VER || __INTEL_COMPILER
|
|
#define _M_SSE 0x402
|
|
#elif defined __GNUC__
|
|
#if defined __SSE4_2__
|
|
#define _M_SSE 0x402
|
|
#elif defined __SSE4_1__
|
|
#define _M_SSE 0x401
|
|
#elif defined __SSSE3__
|
|
#define _M_SSE 0x301
|
|
#elif defined __SSE3__
|
|
#define _M_SSE 0x300
|
|
#endif
|
|
#endif
|
|
|
|
#endif // _M_X86
|