Lines Matching refs:nCnt
804 const int nCnt) in PVRTMatrixLinearEqSolveX() argument
809 if (nCnt == 1) in PVRTMatrixLinearEqSolveX()
817 i = nCnt; in PVRTMatrixLinearEqSolveX()
822 if(pSrc[i][nCnt] != PVRTF2X(0.0f)) in PVRTMatrixLinearEqSolveX()
825 if(i != (nCnt-1)) in PVRTMatrixLinearEqSolveX()
827 for(j = 0; j <= nCnt; ++j) in PVRTMatrixLinearEqSolveX()
830 f = pSrc[nCnt-1][j]; in PVRTMatrixLinearEqSolveX()
831 pSrc[nCnt-1][j] = pSrc[i][j]; in PVRTMatrixLinearEqSolveX()
837 for(j = 0; j < (nCnt-1); ++j) in PVRTMatrixLinearEqSolveX()
839 _ASSERT(pSrc[nCnt-1][nCnt] != PVRTF2X(0.0f)); in PVRTMatrixLinearEqSolveX()
840 f = PVRTXDIV(pSrc[j][nCnt], pSrc[nCnt-1][nCnt]); in PVRTMatrixLinearEqSolveX()
843 for(k = 0; k < nCnt; ++k) in PVRTMatrixLinearEqSolveX()
845 pSrc[j][k] -= PVRTXMUL(f, pSrc[nCnt-1][k]); in PVRTMatrixLinearEqSolveX()
854 PVRTMatrixLinearEqSolveX(pRes, pSrc, nCnt - 1); in PVRTMatrixLinearEqSolveX()
857 f = pSrc[nCnt-1][0]; in PVRTMatrixLinearEqSolveX()
858 for(k = 1; k < nCnt; ++k) in PVRTMatrixLinearEqSolveX()
860 f -= PVRTXMUL(pSrc[nCnt-1][k], pRes[k-1]); in PVRTMatrixLinearEqSolveX()
862 _ASSERT(pSrc[nCnt-1][nCnt] != PVRTF2X(0)); in PVRTMatrixLinearEqSolveX()
863 f = PVRTXDIV(f, pSrc[nCnt-1][nCnt]); in PVRTMatrixLinearEqSolveX()
864 pRes[nCnt-1] = f; in PVRTMatrixLinearEqSolveX()