mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Make the SSE3.1 VideoCommon code available in GCC builds.
The GCC model for extended instructions like these is that you compile with -msse3 etc. These affect code generation for whole compilation units, so the idea is that you have a separate .c file for each instruction set class and then indirect to the desired one at runtime. Without e.g. -msse4.1, the GCC built-ins used by <foointrin.h> are not available. However, in our specific case of compiling with -msse2 and wanting to use SSE3.1 code, enough built-ins are available that we only need to provide a little hack for pshufb. Upgrading this to also use SSE4.1 instructions doesn't appear feasible without a lot of undesirable duplication of GCC built-in functions and headers, so we'd probably have to move to the GCC model of separate source files for that. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6014 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -145,4 +145,8 @@ extern const char *netplay_dolphin_ver;
|
||||
#define __chdir chdir
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || defined __APPLE__
|
||||
#define _M_SSE 0x301
|
||||
#endif
|
||||
|
||||
#endif // _COMMON_H_
|
||||
|
Reference in New Issue
Block a user