From 7fb77963b65e772a71fe78e9172ecb69306334ed Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 21 May 2009 07:58:52 +0000 Subject: [PATCH] formatting --- source/ngc/video.cpp | 69 ++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/source/ngc/video.cpp b/source/ngc/video.cpp index 6330102..f33bf03 100644 --- a/source/ngc/video.cpp +++ b/source/ngc/video.cpp @@ -463,41 +463,42 @@ UpdatePadsCB () static inline void MakeTexture (const void *src, void *dst, s32 width, s32 height) { - register u32 tmp0 = 0, tmp1 = 0, tmp2 = 0, tmp3 = 0; + register u32 tmp0=0,tmp1=0,tmp2=0,tmp3=0; - __asm__ __volatile__ (" srwi %6,%6,2\n" - " srwi %7,%7,2\n" - " subi %3,%4,4\n" - " mr %4,%3\n" - " subi %4,%4,4\n" - "2: mtctr %6\n" - " mr %0,%5\n" - // - "1: lwz %1,0(%5)\n" //1 - " stwu %1,8(%4)\n" - " lwz %2,4(%5)\n" //1 - " stwu %2,8(%3)\n" - " lwz %1,1032(%5)\n" //2 - " stwu %1,8(%4)\n" - " lwz %2,1036(%5)\n" //2 - " stwu %2,8(%3)\n" - " lwz %1,2064(%5)\n" //3 - " stwu %1,8(%4)\n" - " lwz %2,2068(%5)\n" //3 - " stwu %2,8(%3)\n" - " lwz %1,3096(%5)\n" //4 - " stwu %1,8(%4)\n" - " lwz %2,3100(%5)\n" //4 - " stwu %2,8(%3)\n" - " addi %5,%5,8\n" - " bdnz 1b\n" - " addi %5,%0,4128\n" //5 - " subic. %7,%7,1\n" - " bne 2b" - // regs 0-7 - :"=&r" (tmp0), "=&r" (tmp1), "=&r" (tmp2), - "=&r" (tmp3), "+r" (dst):"r" (src), "r" (width), - "r" (height)); + __asm__ __volatile__ ( + " srwi %6,%6,2\n" + " srwi %7,%7,2\n" + " subi %3,%4,4\n" + " mr %4,%3\n" + " subi %4,%4,4\n" + + "2: mtctr %6\n" + " mr %0,%5\n" + // + "1: lwz %1,0(%5)\n" //1 + " stwu %1,8(%4)\n" + " lwz %2,4(%5)\n" //1 + " stwu %2,8(%3)\n" + " lwz %1,1032(%5)\n" //2 + " stwu %1,8(%4)\n" + " lwz %2,1036(%5)\n" //2 + " stwu %2,8(%3)\n" + " lwz %1,2064(%5)\n" //3 + " stwu %1,8(%4)\n" + " lwz %2,2068(%5)\n" //3 + " stwu %2,8(%3)\n" + " lwz %1,3096(%5)\n" //4 + " stwu %1,8(%4)\n" + " lwz %2,3100(%5)\n" //4 + " stwu %2,8(%3)\n" + " addi %5,%5,8\n" + " bdnz 1b\n" + " addi %5,%0,4128\n" //5 + " subic. %7,%7,1\n" + " bne 2b" + // 0 1 2 3 4 5 6 7 + : "=&r"(tmp0), "=&r"(tmp1), "=&r"(tmp2), "=&r"(tmp3), "+r"(dst) : "r"(src), "r"(width), "r"(height) + ); } /****************************************************************************