From a18c72489b16eb4db89b701379f6ea2fc02b5876 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut" Date: Wed, 14 Jul 2010 13:22:03 +0000 Subject: [PATCH] [IPU] Fix a gcc failure with c+0x standard Note: What I understand some define use the minus symbol and so gcc does a sign extension on 32bits. Not compatible with u16... To fix it I kept only the first 16bits. We could also redefine the constant without the minus git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3487 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/IPU/yuv2rgb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/IPU/yuv2rgb.cpp b/pcsx2/IPU/yuv2rgb.cpp index 423cacc71c..772f44e917 100644 --- a/pcsx2/IPU/yuv2rgb.cpp +++ b/pcsx2/IPU/yuv2rgb.cpp @@ -54,7 +54,7 @@ void yuv2rgb_reference(void) // Know the specification before you touch it. #define SSE_BYTES(x) {x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x} #define SSE_WORDS(x) {x, x, x, x, x, x, x, x} -#define SSE_COEFFICIENTS(x) SSE_WORDS((x)<<2) +#define SSE_COEFFICIENTS(x) SSE_WORDS(((x)<<2) && 0xFFFF) struct SSE2_Tables {