mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
Clean up the preprocessor glue for selecting RGB utility implementation a little
This commit is contained in:
parent
baa872748d
commit
f27abac28a
@ -1393,7 +1393,7 @@ void validity_checker::validate_rgb()
|
||||
|
||||
// test bilinear_filter and bilinear_filter_rgbaint
|
||||
// SSE implementation carries more internal precision between the bilinear stages
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || defined(_MSC_VER)) && defined(PTR64)
|
||||
#if defined(MAME_RGB_HIGH_PRECISION)
|
||||
const int first_shift = 1;
|
||||
#else
|
||||
const int first_shift = 8;
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "emu.h"
|
||||
|
||||
|
||||
#if !(defined(__ALTIVEC__) || ((!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || defined(_MSC_VER)) && defined(PTR64)))
|
||||
#if ((defined(MAME_DEBUG) && !defined(__OPTIMIZE__)) || (!defined(__SSE2__) && (_M_IX86_FP < 2))) && !defined(__ALTIVEC__)
|
||||
|
||||
#include "rgbgen.h"
|
||||
|
||||
|
@ -12,11 +12,11 @@
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || defined(_MSC_VER)) && defined(PTR64)
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || (_M_IX86_FP >= 2))
|
||||
|
||||
#include <emmintrin.h>
|
||||
#include "rgbsse.h"
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
TABLES
|
||||
***************************************************************************/
|
||||
|
@ -13,13 +13,20 @@
|
||||
#define MAME_EMU_VIDEO_RGBUTIL_H
|
||||
|
||||
// use SSE on 64-bit implementations, where it can be assumed
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || defined(_MSC_VER)) && defined(PTR64)
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || (_M_IX86_FP >= 2))
|
||||
|
||||
#define MAME_RGB_HIGH_PRECISION
|
||||
#include "rgbsse.h"
|
||||
|
||||
#elif defined(__ALTIVEC__)
|
||||
|
||||
#define MAME_RGB_HIGH_PRECISION
|
||||
#include "rgbvmx.h"
|
||||
|
||||
#else
|
||||
|
||||
#include "rgbgen.h"
|
||||
|
||||
#endif
|
||||
|
||||
#endif // MAME_EMU_VIDEO_RGBUTIL_H
|
||||
|
Loading…
Reference in New Issue
Block a user