Home
last modified time | relevance | path

Searched refs:det_1 (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTVector.cpp268 VERTTYPE det_1; in inverse() local
287 det_1 = pos + neg; in inverse()
290 if (det_1 == f2vt(0.0)) //|| (VERTTYPEABS(det_1 / (pos - neg)) < 1.0e-15) in inverse()
299 det_1 = VERTTYPEDIV(f2vt(1.0f), det_1); in inverse()
300 out.f[ 0] = VERTTYPEMUL(( VERTTYPEMUL(f[ 5], f[10]) - VERTTYPEMUL(f[ 9], f[ 6]) ), det_1); in inverse()
301 out.f[ 1] = - VERTTYPEMUL(( VERTTYPEMUL(f[ 1], f[10]) - VERTTYPEMUL(f[ 9], f[ 2]) ), det_1); in inverse()
302 out.f[ 2] = VERTTYPEMUL(( VERTTYPEMUL(f[ 1], f[ 6]) - VERTTYPEMUL(f[ 5], f[ 2]) ), det_1); in inverse()
303 out.f[ 4] = - VERTTYPEMUL(( VERTTYPEMUL(f[ 4], f[10]) - VERTTYPEMUL(f[ 8], f[ 6]) ), det_1); in inverse()
304 out.f[ 5] = VERTTYPEMUL(( VERTTYPEMUL(f[ 0], f[10]) - VERTTYPEMUL(f[ 8], f[ 2]) ), det_1); in inverse()
305 out.f[ 6] = - VERTTYPEMUL(( VERTTYPEMUL(f[ 0], f[ 6]) - VERTTYPEMUL(f[ 4], f[ 2]) ), det_1); in inverse()
[all …]
DPVRTMatrixF.cpp258 double det_1; in PVRTMatrixInverseF() local
277 det_1 = pos + neg; in PVRTMatrixInverseF()
280 if ((det_1 == 0.0) || (PVRTABS(det_1 / (pos - neg)) < 1.0e-15)) in PVRTMatrixInverseF()
289 det_1 = 1.0 / det_1; in PVRTMatrixInverseF()
290 mDummyMatrix.f[ 0] = ( mIn.f[ 5] * mIn.f[10] - mIn.f[ 9] * mIn.f[ 6] ) * (float)det_1; in PVRTMatrixInverseF()
291 mDummyMatrix.f[ 1] = - ( mIn.f[ 1] * mIn.f[10] - mIn.f[ 9] * mIn.f[ 2] ) * (float)det_1; in PVRTMatrixInverseF()
292 mDummyMatrix.f[ 2] = ( mIn.f[ 1] * mIn.f[ 6] - mIn.f[ 5] * mIn.f[ 2] ) * (float)det_1; in PVRTMatrixInverseF()
293 mDummyMatrix.f[ 4] = - ( mIn.f[ 4] * mIn.f[10] - mIn.f[ 8] * mIn.f[ 6] ) * (float)det_1; in PVRTMatrixInverseF()
294 mDummyMatrix.f[ 5] = ( mIn.f[ 0] * mIn.f[10] - mIn.f[ 8] * mIn.f[ 2] ) * (float)det_1; in PVRTMatrixInverseF()
295 mDummyMatrix.f[ 6] = - ( mIn.f[ 0] * mIn.f[ 6] - mIn.f[ 4] * mIn.f[ 2] ) * (float)det_1; in PVRTMatrixInverseF()
[all …]
DPVRTMatrixX.cpp263 int det_1; in PVRTMatrixInverseX() local
282 det_1 = pos + neg; in PVRTMatrixInverseX()
285 if (det_1 == 0) in PVRTMatrixInverseX()
295 det_1 = PVRTXDIV(PVRTF2X(1.0f), det_1); in PVRTMatrixInverseX()
296 …rix.f[ 0] = PVRTXMUL(( PVRTXMUL(mIn.f[ 5], mIn.f[10]) - PVRTXMUL(mIn.f[ 9], mIn.f[ 6]) ), det_1); in PVRTMatrixInverseX()
297 …rix.f[ 1] = - PVRTXMUL(( PVRTXMUL(mIn.f[ 1], mIn.f[10]) - PVRTXMUL(mIn.f[ 9], mIn.f[ 2]) ), det_1); in PVRTMatrixInverseX()
298 …rix.f[ 2] = PVRTXMUL(( PVRTXMUL(mIn.f[ 1], mIn.f[ 6]) - PVRTXMUL(mIn.f[ 5], mIn.f[ 2]) ), det_1); in PVRTMatrixInverseX()
299 …rix.f[ 4] = - PVRTXMUL(( PVRTXMUL(mIn.f[ 4], mIn.f[10]) - PVRTXMUL(mIn.f[ 8], mIn.f[ 6]) ), det_1); in PVRTMatrixInverseX()
300 …rix.f[ 5] = PVRTXMUL(( PVRTXMUL(mIn.f[ 0], mIn.f[10]) - PVRTXMUL(mIn.f[ 8], mIn.f[ 2]) ), det_1); in PVRTMatrixInverseX()
301 …rix.f[ 6] = - PVRTXMUL(( PVRTXMUL(mIn.f[ 0], mIn.f[ 6]) - PVRTXMUL(mIn.f[ 4], mIn.f[ 2]) ), det_1); in PVRTMatrixInverseX()
[all …]