Clean up the preprocessor glue for selecting RGB utility implementation a little

This commit is contained in:
Vas Crabb 2020-08-21 12:52:17 +10:00
parent baa872748d
commit f27abac28a
4 changed files with 12 additions and 5 deletions

View File

@ -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;

View File

@ -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"

View File

@ -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
***************************************************************************/

View File

@ -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