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
gte: switch divider back to table
[pcsx_rearmed.git]
/
libpcsxcore
/
gte.c
diff --git
a/libpcsxcore/gte.c
b/libpcsxcore/gte.c
index
ec173b5
..
3002a90
100644
(file)
--- a/
libpcsxcore/gte.c
+++ b/
libpcsxcore/gte.c
@@
-343,6
+343,7
@@
void gteSWC2() {
psxMemWrite32(_oB_, MFC2(_Rt_));
}
psxMemWrite32(_oB_, MFC2(_Rt_));
}
+#if 0
#define DIVIDE DIVIDE_
static u32 DIVIDE_(s16 n, u16 d) {
if (n >= 0 && n < d * 2) {
#define DIVIDE DIVIDE_
static u32 DIVIDE_(s16 n, u16 d) {
if (n >= 0 && n < d * 2) {
@@
-352,6
+353,7
@@
static u32 DIVIDE_(s16 n, u16 d) {
}
return 0xffffffff;
}
}
return 0xffffffff;
}
+#endif
void gteRTPS() {
int quotient;
void gteRTPS() {
int quotient;
@@
-377,8
+379,8
@@
void gteRTPS() {
gteSX2 = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16);
gteSY2 = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16);
gteSX2 = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16);
gteSY2 = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16);
- gteMAC0 = F((s64)
(gteDQB + ((s64)gteDQA * quotient)) >> 12
);
- gteIR0 = limH(gteMAC0);
+ gteMAC0 = F((s64)
gteDQB + ((s64)gteDQA * quotient)
);
+ gteIR0 = limH(gteMAC0
>> 12
);
}
void gteRTPT() {
}
void gteRTPT() {
@@
-407,8
+409,8
@@
void gteRTPT() {
fSX(v) = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16);
fSY(v) = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16);
}
fSX(v) = limG1(F((s64)gteOFX + ((s64)gteIR1 * quotient)) >> 16);
fSY(v) = limG2(F((s64)gteOFY + ((s64)gteIR2 * quotient)) >> 16);
}
- gteMAC0 = F((s64)
(gteDQB + ((s64)gteDQA * quotient)) >> 12
);
- gteIR0 = limH(gteMAC0);
+ gteMAC0 = F((s64)
gteDQB + ((s64)gteDQA * quotient)
);
+ gteIR0 = limH(gteMAC0
>> 12
);
}
void gteMVMVA() {
}
void gteMVMVA() {