From 021a49eeb22f3de3c79e1da519dfb25ba8b0caf1 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 21 Jun 2015 19:03:00 -0400 Subject: [PATCH] condensed (uint32_t)(uint32_t) since everything is in one line --- Source/RSP/Interpreter Ops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/RSP/Interpreter Ops.c b/Source/RSP/Interpreter Ops.c index 332f8ea0b..a2ead6c7e 100644 --- a/Source/RSP/Interpreter Ops.c +++ b/Source/RSP/Interpreter Ops.c @@ -563,7 +563,7 @@ void RSP_Vector_VMUDM (void) { for (el = 0; el < 8; el ++ ) { del = EleSpec[RSPOpC.rs].B[el]; - temp.UW = (uint32_t)((int32_t)RSP_Vect[RSPOpC.rd].HW[el]) * (uint32_t)((uint32_t)RSP_Vect[RSPOpC.rt].UHW[del]); + temp.UW = (uint32_t)((int32_t)RSP_Vect[RSPOpC.rd].HW[el]) * (uint32_t)RSP_Vect[RSPOpC.rt].UHW[del]; if (temp.W < 0) { RSP_ACCUM[el].HW[3] = -1; } else { @@ -584,7 +584,7 @@ void RSP_Vector_VMUDN (void) { for (el = 0; el < 8; el ++ ) { del = EleSpec[RSPOpC.rs].B[el]; - temp.UW = (uint32_t)((uint32_t)RSP_Vect[RSPOpC.rd].UHW[el]) * (uint32_t)(( int32_t)RSP_Vect[RSPOpC.rt].HW[del]); + temp.UW = (uint32_t)RSP_Vect[RSPOpC.rd].UHW[el] * (uint32_t)((int32_t)RSP_Vect[RSPOpC.rt].HW[del]); if (temp.W < 0) { RSP_ACCUM[el].HW[3] = -1; } else { @@ -797,7 +797,7 @@ void RSP_Vector_VMADM (void) { for (el = 0; el < 8; el ++ ) { del = EleSpec[RSPOpC.rs].B[el]; - temp.UW = (uint32_t)((int32_t)RSP_Vect[RSPOpC.rd].HW[el]) * (uint32_t)((uint32_t)RSP_Vect[RSPOpC.rt].UHW[del]); + temp.UW = (uint32_t)((int32_t)RSP_Vect[RSPOpC.rd].HW[el]) * (uint32_t)RSP_Vect[RSPOpC.rt].UHW[del]; temp2.UW = temp.UHW[0] + RSP_ACCUM[el].UHW[1]; RSP_ACCUM[el].HW[1] = temp2.HW[0]; temp2.UW = temp.UHW[1] + RSP_ACCUM[el].UHW[2] + temp2.UHW[1]; @@ -840,7 +840,7 @@ void RSP_Vector_VMADN (void) { for (el = 0; el < 8; el ++ ) { del = EleSpec[RSPOpC.rs].B[el]; - temp.UW = (uint32_t)((uint32_t)RSP_Vect[RSPOpC.rd].UHW[el]) * (uint32_t)( (int32_t)RSP_Vect[RSPOpC.rt].HW[del]); + temp.UW = (uint32_t)RSP_Vect[RSPOpC.rd].UHW[el] * (uint32_t)((int32_t)RSP_Vect[RSPOpC.rt].HW[del]); temp2.UW = temp.UHW[0] + RSP_ACCUM[el].UHW[1]; RSP_ACCUM[el].HW[1] = temp2.HW[0]; temp2.UW = temp.UHW[1] + RSP_ACCUM[el].UHW[2] + temp2.UHW[1];