notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
release r10, for real
[pcsx_rearmed.git]
/
libpcsxcore
/
gte.c
diff --git
a/libpcsxcore/gte.c
b/libpcsxcore/gte.c
index
0acca65
..
16e0a89
100644
(file)
--- a/
libpcsxcore/gte.c
+++ b/
libpcsxcore/gte.c
@@
-212,7
+212,11
@@
static inline s32 LIM(s32 value, s32 max, s32 min, u32 flag_unused) {
return ret;
}
-#define limE(a) ((a) & 0x1ffff)
+static inline u32 limE(u32 result) {
+ if (result > 0x1ffff)
+ return 0x1ffff;
+ return result;
+}
#endif