mirror of
https://github.com/holub/mame
synced 2025-04-16 21:44:32 +03:00
emu/video: check macros are defined before doing comparisons, also fix a typo in docs
This commit is contained in:
parent
3c5f9eb0ce
commit
ecab55f700
@ -502,7 +502,7 @@ Linking using the LLVM linker
|
||||
|
||||
The LLVM linker is generally faster than the GNU linker that GCC uses by
|
||||
default. This is more pronounced on systems with a high overhead for file
|
||||
system operations (e.g. Microsoft Window, or when compiling on a disk mounted
|
||||
system operations (e.g. Microsoft Windows, or when compiling on a disk mounted
|
||||
over a network). To use the LLVM linker with GCC, ensure the LLVM linker is
|
||||
installed and add ``-fuse-ld=lld`` to the linker options (e.g. in the
|
||||
**LDFLAGS** environment variable or in the **ARCHOPTS** setting).
|
||||
|
@ -10,8 +10,7 @@
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
|
||||
#if ((defined(MAME_DEBUG) && !defined(__OPTIMIZE__)) || (!defined(__SSE2__) && (_M_IX86_FP < 2))) && !defined(__ALTIVEC__)
|
||||
#if ((defined(MAME_DEBUG) && !defined(__OPTIMIZE__)) || (!defined(__SSE2__) && (!defined(_M_IX86_FP) || (_M_IX86_FP < 2)))) && !defined(__ALTIVEC__)
|
||||
|
||||
#include "rgbgen.h"
|
||||
|
||||
@ -115,4 +114,4 @@ void rgbaint_t::scale2_add_and_clamp(const rgbaint_t& scale, const rgbaint_t& ot
|
||||
if (u32(m_b) > 255) { m_b = (m_b < 0) ? 0 : 255; }
|
||||
}
|
||||
|
||||
#endif // !defined(__ALTIVEC__)
|
||||
#endif // ((defined(MAME_DEBUG) && !defined(__OPTIMIZE__)) || (!defined(__SSE2__) && (!defined(_M_IX86_FP) || (_M_IX86_FP < 2)))) && !defined(__ALTIVEC__)
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || (_M_IX86_FP >= 2))
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)))
|
||||
|
||||
#include "rgbsse.h"
|
||||
|
||||
@ -185,4 +185,4 @@ void rgbaint_t::scale_and_clamp(const rgbaint_t& scale)
|
||||
clamp_to_uint8();
|
||||
}
|
||||
|
||||
#endif // defined(__SSE2__) || defined(_MSC_VER)
|
||||
#endif // (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)))
|
||||
|
@ -13,7 +13,7 @@
|
||||
#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__) || (_M_IX86_FP >= 2))
|
||||
#if (!defined(MAME_DEBUG) || defined(__OPTIMIZE__)) && (defined(__SSE2__) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)))
|
||||
|
||||
#define MAME_RGB_HIGH_PRECISION
|
||||
#include "rgbsse.h"
|
||||
|
Loading…
Reference in New Issue
Block a user