mirror of https://github.com/PCSX2/pcsx2.git
IPU: replace SATURATE macro with a function
This commit is contained in:
parent
ac1b3845b2
commit
796b2d4970
|
@ -334,11 +334,11 @@ static __fi int get_chroma_dc_dct_diff()
|
|||
return dc_diff;
|
||||
}
|
||||
|
||||
#define SATURATE(val) \
|
||||
do { \
|
||||
if (((u32)(val + 2048) > 4095)) \
|
||||
val = (((s32)val) >> 31) ^ 2047; \
|
||||
} while (0)
|
||||
static __fi void SATURATE(int& val)
|
||||
{
|
||||
if ((u32)(val + 2048) > 4095)
|
||||
val = (val >> 31) ^ 2047;
|
||||
}
|
||||
|
||||
static bool get_intra_block()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue