diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-04-13 03:05:58 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-04-13 03:05:58 +0000 |
| commit | 486f0f42b706b9f887f967df4bb48fb8291f1081 (patch) | |
| tree | 72243ab9815c8075bfec5a23210e3a0d16885425 /libpcsxcore | |
| parent | 45e4dcf4be9f6fa936e595ee252d8f1ba144d3d6 (diff) | |
| download | pcsxr-486f0f42b706b9f887f967df4bb48fb8291f1081.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@44987 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/gte.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libpcsxcore/gte.c b/libpcsxcore/gte.c index 11568575..22000b4a 100644 --- a/libpcsxcore/gte.c +++ b/libpcsxcore/gte.c @@ -265,10 +265,11 @@ static inline void MTC2(unsigned long value, int reg) { break; case 30: - { + {
+ int a; gteLZCS = value; - int a = gteLZCS; + a = gteLZCS; if (a > 0) { int i; for (i = 31; (a & (1 << i)) == 0 && i >= 0; i--); @@ -643,16 +644,15 @@ void gteOP() { void gteDCPL() { int shift = 12 * GTE_SF(gteop); int lm = GTE_LM(gteop); + s64 iR = (gteR << 4) * gteIR1;
+ s64 iG = (gteG << 4) * gteIR2;
+ s64 iB = (gteB << 4) * gteIR3;
#ifdef GTE_LOG GTE_LOG("DCPL\n"); #endif gteFLAG = 0; - s64 iR = (gteR << 4) * gteIR1; - s64 iG = (gteG << 4) * gteIR2; - s64 iB = (gteB << 4) * gteIR3; - gteMAC1 = A1(iR + gteIR0 * Lm_B1(gteRFC - iR, 0)) >> shift; gteMAC2 = A2(iG + gteIR0 * Lm_B1(gteGFC - iG, 0)) >> shift; gteMAC3 = A3(iB + gteIR0 * Lm_B1(gteBFC - iB, 0)) >> shift; |
